]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix linking
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 14 Feb 2019 17:26:48 +0000 (17:26 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 14 Feb 2019 17:28:19 +0000 (17:28 +0000)
src/CMakeLists.txt

index 27b9277b475e5cdd20c86c963022b3a0991658d2..256feb5222fd6d952a0be0d42a7b50e0d71b2f3d 100644 (file)
@@ -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)