From a19d204970326d31ef21a5379d5bf5a50dfec03d Mon Sep 17 00:00:00 2001 From: Hayk Martirosyan Date: Tue, 14 Jun 2016 00:26:04 -0700 Subject: [PATCH] if statements on installs --- CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d8c8162..3639f38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,11 +181,15 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX) set(LIB_SUFFIX "64") endif() -# Install the dynamic library to /usr/lib[64] -install(TARGETS redox DESTINATION lib${LIB_SUFFIX}) +if (lib) + # Install the dynamic library to /usr/lib[64] + install(TARGETS redox DESTINATION lib${LIB_SUFFIX}) +endif() -# Install the static library to /usr/lib[64] -install(TARGETS redox_static DESTINATION lib${LIB_SUFFIX}) +if (static_lib) + # Install the static library to /usr/lib[64] + install(TARGETS redox_static DESTINATION lib${LIB_SUFFIX}) +endif() # Install the headers into /usr/include/redox install(FILES ${INC_REDOX_CORE} DESTINATION include/redox) -- libgit2 0.21.4