diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-14 17:26:48 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-14 17:28:19 +0000 |
commit | 5f2aad306e13c1688a0e0d48be65aa5bd6070ebb (patch) | |
tree | 9f5ac7c56fd4f8069ae15132aa96103521d078ca /src/CMakeLists.txt | |
parent | b4416a47bc8bb8befb83e998659b4bc84d645f1e (diff) | |
download | rspamd-5f2aad306e13c1688a0e0d48be65aa5bd6070ebb.tar.gz rspamd-5f2aad306e13c1688a0e0d48be65aa5bd6070ebb.zip |
[Minor] Fix linking
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 27b9277b4..256feb522 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -206,18 +206,15 @@ IF (ENABLE_HYPERSCAN MATCHES "ON") ENDIF() TARGET_LINK_LIBRARIES(rspamd-server rspamd-linenoise) - -IF(USE_CXX_LINKER) - SET_TARGET_PROPERTIES(rspamd PROPERTIES LINKER_LANGUAGE CXX) - SET_TARGET_PROPERTIES(rspamd-server PROPERTIES LINKER_LANGUAGE CXX) -ENDIF() - - TARGET_LINK_LIBRARIES(rspamd-server ${RSPAMD_REQUIRED_LIBRARIES}) ADD_EXECUTABLE(rspamd ${RSPAMDSRC} ${CMAKE_CURRENT_BINARY_DIR}/workers.c) SET_TARGET_PROPERTIES(rspamd PROPERTIES LINKER_LANGUAGE C) SET_TARGET_PROPERTIES(rspamd PROPERTIES COMPILE_FLAGS "-DRSPAMD_MAIN") +IF(USE_CXX_LINKER) + SET_TARGET_PROPERTIES(rspamd PROPERTIES LINKER_LANGUAGE CXX) + SET_TARGET_PROPERTIES(rspamd-server PROPERTIES LINKER_LANGUAGE CXX) +ENDIF() IF(NOT DEBIAN_BUILD) SET_TARGET_PROPERTIES(rspamd PROPERTIES VERSION ${RSPAMD_VERSION}) ENDIF(NOT DEBIAN_BUILD) |