]> source.dussan.org Git - rspamd.git/commitdiff
Do not use relative path for linkage.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Oct 2015 11:30:39 +0000 (12:30 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Oct 2015 11:30:39 +0000 (12:30 +0100)
Issue: #386

test/CMakeLists.txt

index 584bbbd4d41b71200d84a82ea0c1a1b38beac737..1e8fcb67f1762fa366993224b5c421f68d17b110 100644 (file)
@@ -18,9 +18,9 @@ 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)
 IF(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
-       TARGET_LINK_LIBRARIES(rspamd-test "-Wl,-whole-archive ../src/librspamd-server.a -Wl,-no-whole-archive")
+       TARGET_LINK_LIBRARIES(rspamd-test "-Wl,-whole-archive ${CMAKE_BINARY_DIR}/src/librspamd-server.a -Wl,-no-whole-archive")
 ELSE(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
-       TARGET_LINK_LIBRARIES(rspamd-test "-Wl,-force_load ../src/librspamd-server.a")
+       TARGET_LINK_LIBRARIES(rspamd-test "-Wl,-force_load ${CMAKE_BINARY_DIR}/src/librspamd-server.a")
 ENDIF(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
 TARGET_LINK_LIBRARIES(rspamd-test rspamd-cdb)
 TARGET_LINK_LIBRARIES(rspamd-test rspamd-http-parser)