aboutsummaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-28 11:52:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-28 11:52:49 +0100
commitab8882972d32c737afeda1902f96879f75f0a512 (patch)
tree59f0bf58e6d1b706ea38c7ad95be3b404def30f9 /src/CMakeLists.txt
parent339e2ffd33d6953cacfb3bbb35586defb21fa82d (diff)
downloadrspamd-ab8882972d32c737afeda1902f96879f75f0a512.tar.gz
rspamd-ab8882972d32c737afeda1902f96879f75f0a512.zip
[Minor] Always use c++ linker now
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 903aa3159..77c8756af 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -230,12 +230,8 @@ 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()
+SET_TARGET_PROPERTIES(rspamd PROPERTIES LINKER_LANGUAGE CXX)
+SET_TARGET_PROPERTIES(rspamd-server PROPERTIES LINKER_LANGUAGE CXX)
IF(NOT DEBIAN_BUILD)
SET_TARGET_PROPERTIES(rspamd PROPERTIES VERSION ${RSPAMD_VERSION})
ENDIF(NOT DEBIAN_BUILD)