From a05f77c6755047c96c721a09c10a536a9342d7e9 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 21 Oct 2019 21:53:27 -0500 Subject: CMake: Drastically simplifify hscript library building --- hscript/CMakeLists.txt | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'hscript') diff --git a/hscript/CMakeLists.txt b/hscript/CMakeLists.txt index 036fa34..ed3d58f 100644 --- a/hscript/CMakeLists.txt +++ b/hscript/CMakeLists.txt @@ -8,17 +8,10 @@ set(HSCRIPT_SOURCE ) set(HSCRIPT_INCLUDE - script.hh - key.hh + script.hh ) -IF(INSTALL) -set(HSCRIPT_LIBRARY_TYPE SHARED) -ELSE(INSTALL) -set(HSCRIPT_LIBRARY_TYPE STATIC) -ENDIF(INSTALL) - -add_library(hscript ${HSCRIPT_LIBRARY_TYPE} ${HSCRIPT_SOURCE}) +add_library(hscript ${HSCRIPT_SOURCE}) target_compile_features(hscript PRIVATE cxx_nullptr) target_compile_features(hscript PUBLIC cxx_unicode_literals) target_link_libraries(hscript ${BLKID_LIBRARIES} ${LIBUDEV_LIBRARIES}) -- cgit v1.2.3-70-g09d2