Commit a19d204970326d31ef21a5379d5bf5a50dfec03d

Authored by Hayk Martirosyan
1 parent 920ef0aa

if statements on installs

Showing 1 changed file with 8 additions and 4 deletions
CMakeLists.txt
... ... @@ -181,11 +181,15 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX)
181 181 set(LIB_SUFFIX "64")
182 182 endif()
183 183  
184   -# Install the dynamic library to /usr/lib[64]
185   -install(TARGETS redox DESTINATION lib${LIB_SUFFIX})
  184 +if (lib)
  185 + # Install the dynamic library to /usr/lib[64]
  186 + install(TARGETS redox DESTINATION lib${LIB_SUFFIX})
  187 +endif()
186 188  
187   -# Install the static library to /usr/lib[64]
188   -install(TARGETS redox_static DESTINATION lib${LIB_SUFFIX})
  189 +if (static_lib)
  190 + # Install the static library to /usr/lib[64]
  191 + install(TARGETS redox_static DESTINATION lib${LIB_SUFFIX})
  192 +endif()
189 193  
190 194 # Install the headers into /usr/include/redox
191 195 install(FILES ${INC_REDOX_CORE} DESTINATION include/redox)
... ...