diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-05 18:29:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-05 18:29:46 +0000 |
commit | afbe7a857b990fc524573f402131c0453e4a0104 (patch) | |
tree | ce47b25afca8ae4e92c3a9e587c76e04ba4f1e17 | |
parent | 13ba689e07c82f7803bcaf448e48bdb78fdd543d (diff) | |
download | rspamd-afbe7a857b990fc524573f402131c0453e4a0104.tar.gz rspamd-afbe7a857b990fc524573f402131c0453e4a0104.zip |
Fix linking on Darwin.
-rw-r--r-- | test/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 057ff76f6..1e0495c1f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -18,7 +18,11 @@ ADD_EXECUTABLE(rspamd-test EXCLUDE_FROM_ALL ${TESTSRC}) SET_TARGET_PROPERTIES(rspamd-test PROPERTIES LINKER_LANGUAGE C) SET_TARGET_PROPERTIES(rspamd-test PROPERTIES COMPILE_FLAGS "-DRSPAMD_TEST") ADD_DEPENDENCIES(rspamd-test rspamd-server) -TARGET_LINK_LIBRARIES(rspamd-test "-Wl,-whole-archive ../src/librspamd-server.a -Wl,-no-whole-archive") +IF(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") + TARGET_LINK_LIBRARIES(rspamd-test "-Wl,-whole-archive ../src/librspamd-server.a -Wl,-no-whole-archive") +ELSE(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") + TARGET_LINK_LIBRARIES(rspamd-test rspamd-server) +ENDIF(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") TARGET_LINK_LIBRARIES(rspamd-test rspamd-cdb) TARGET_LINK_LIBRARIES(rspamd-test rspamd-http-parser) TARGET_LINK_LIBRARIES(rspamd-test ${RSPAMD_REQUIRED_LIBRARIES}) |