diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-31 12:49:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-31 13:29:45 +0100 |
commit | d172dc08141734fbb07d8516c726435d48141dc8 (patch) | |
tree | 6cbb62a02efac99f042191990e457c19b534f46d /src | |
parent | 9d38464b8c74448d6d6fd0d69a7c7bddd26d317f (diff) | |
download | rspamd-d172dc08141734fbb07d8516c726435d48141dc8.tar.gz rspamd-d172dc08141734fbb07d8516c726435d48141dc8.zip |
[Minor] Some fixes for static build
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/client/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/rspamadm/CMakeLists.txt | 4 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 33bc45406..a318af59e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -192,6 +192,9 @@ ENDIF () IF (ENABLE_HYPERSCAN MATCHES "ON") TARGET_LINK_LIBRARIES(rspamd hs) +ENDIF() + +IF(USE_CXX_LINKER) SET_TARGET_PROPERTIES(rspamd PROPERTIES LINKER_LANGUAGE CXX) ENDIF() diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 51def34d7..0a92019d8 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -8,7 +8,7 @@ ADD_EXECUTABLE(rspamc ${RSPAMCSRC} ${LIBRSPAMDCLIENTSRC}) SET_TARGET_PROPERTIES(rspamc PROPERTIES COMPILE_FLAGS "-I${CMAKE_SOURCE_DIR}/lib") TARGET_LINK_LIBRARIES(rspamc rspamd-server) TARGET_LINK_LIBRARIES(rspamc ${RSPAMD_REQUIRED_LIBRARIES}) -IF (ENABLE_HYPERSCAN MATCHES "ON") +IF(USE_CXX_LINKER) SET_TARGET_PROPERTIES(rspamc PROPERTIES LINKER_LANGUAGE CXX) ENDIF() diff --git a/src/rspamadm/CMakeLists.txt b/src/rspamadm/CMakeLists.txt index 91e14d749..752e23d8b 100644 --- a/src/rspamadm/CMakeLists.txt +++ b/src/rspamadm/CMakeLists.txt @@ -49,7 +49,9 @@ IF (ENABLE_FANN MATCHES "ON") ENDIF () IF (ENABLE_HYPERSCAN MATCHES "ON") TARGET_LINK_LIBRARIES(rspamadm hs) - SET_TARGET_PROPERTIES(rspamadm PROPERTIES LINKER_LANGUAGE CXX) ENDIF () +IF(USE_CXX_LINKER) + SET_TARGET_PROPERTIES(rspamadm PROPERTIES LINKER_LANGUAGE CXX) +ENDIF() INSTALL(TARGETS rspamadm RUNTIME DESTINATION bin) |