]> source.dussan.org Git - rspamd.git/commitdiff
Add explicit dependency for rspamd-test on rspamd-server
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 28 Feb 2015 22:23:56 +0000 (22:23 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 28 Feb 2015 22:23:56 +0000 (22:23 +0000)
test/CMakeLists.txt

index 51e2e77f1624a92d75a47b8b1e6364df3cb9a333..057ff76f68ae823accb35819793418404f55bf79 100644 (file)
@@ -17,7 +17,7 @@ SET(TESTSRC           rspamd_expression_test.c
 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")
 TARGET_LINK_LIBRARIES(rspamd-test rspamd-cdb)
 TARGET_LINK_LIBRARIES(rspamd-test rspamd-http-parser)