diff options
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7285d8e7b..9b3f0b7b4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -143,6 +143,10 @@ RAGEL_TARGET(ragel_smtp_ip DEPENDS ${RAGEL_DEPENDS} COMPILE_FLAGS -G2 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ip_parser.rl.c) +# Fucking cmake... +FOREACH(_GEN ${LIBSERVER_GENERATED}) + set_source_files_properties(${_GEN} PROPERTIES GENERATED TRUE) +ENDFOREACH() ######################### LINK SECTION ############################### IF(ENABLE_STATIC MATCHES "ON") @@ -181,6 +185,10 @@ ELSE() "${RAGEL_ragel_smtp_ip_OUTPUTS}") ENDIF() +FOREACH(_DEP ${LIBSERVER_DEPENDS}) + ADD_DEPENDENCIES(rspamd-server "${_DEP}") +ENDFOREACH() + TARGET_LINK_LIBRARIES(rspamd-server rspamd-http-parser) TARGET_LINK_LIBRARIES(rspamd-server rspamd-fpconv) TARGET_LINK_LIBRARIES(rspamd-server rspamd-cdb) |