From b3f04d2fa57265c9faf1cdfd921a0ea6feae1c40 Mon Sep 17 00:00:00 2001 From: Valient Gough Date: Mon, 5 Sep 2016 23:13:21 +0200 Subject: [PATCH] don't install libencfs by default --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0770270..4234684 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,8 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} option (BUILD_SHARED_LIBS "build shared libraries" OFF) option (USE_INTERNAL_TINYXML "use built-in TinyXML2" ON) -option (ENABLE_NLS "Compile with Native Language Support (using gettext)" ON) +option (ENABLE_NLS "compile with Native Language Support (using gettext)" ON) +option (INSTALL_LIBENCFS "install libencfs" OFF) # We need C++ 11 if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.0) @@ -165,7 +166,9 @@ target_link_libraries(encfs ${TINYXML_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ) -install (TARGETS encfs DESTINATION lib) +if (INSTALL_LIBENCFS) + install (TARGETS encfs DESTINATION lib) +endif (INSTALL_LIBENCFS) if (IWYU) if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.2)