aboutsummaryrefslogtreecommitdiffstats
path: root/src/cdb/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cdb/CMakeLists.txt')
-rw-r--r--src/cdb/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cdb/CMakeLists.txt b/src/cdb/CMakeLists.txt
index 8c7f6b3be..7c6e1257d 100644
--- a/src/cdb/CMakeLists.txt
+++ b/src/cdb/CMakeLists.txt
@@ -7,7 +7,8 @@ ADD_LIBRARY(rspamd-cdb ${LINK_TYPE} ${CDBSRC})
TARGET_LINK_LIBRARIES(rspamd-cdb rspamd-util)
SET_TARGET_PROPERTIES(rspamd-cdb PROPERTIES VERSION ${RSPAMD_VERSION})
SET_TARGET_PROPERTIES(rspamd-cdb PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
-INSTALL(TARGETS rspamd-cdb
- LIBRARY DESTINATION ${LIBDIR}
- PUBLIC_HEADER DESTINATION ${INCLUDEDIR}
- ARCHIVE DESTINATION ${LIBDIR}) \ No newline at end of file
+IF(NO_SHARED MATCHES "OFF")
+ INSTALL(TARGETS rspamd-cdb
+ LIBRARY DESTINATION ${LIBDIR}
+ PUBLIC_HEADER DESTINATION ${INCLUDEDIR})
+ENDIF(NO_SHARED MATCHES "OFF") \ No newline at end of file