aboutsummaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c9f99a7a5..d4765ce79 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -102,12 +102,19 @@ ENDIF()
AddModules(MODULES_LIST WORKERS_LIST)
LIST(LENGTH PLUGINSSRC RSPAMD_MODULES_NUM)
+SET(RAGEL_DEPENDS "${CMAKE_SOURCE_DIR}/src/ragel/smtp_address.rl"
+ "${CMAKE_SOURCE_DIR}/src/ragel/smtp_date.rl"
+ "${CMAKE_SOURCE_DIR}/src/ragel/smtp_ip.rl"
+ "${CMAKE_SOURCE_DIR}/src/ragel/smtp_whitespace.rl"
+ "${CMAKE_SOURCE_DIR}/src/ragel/smtp_received.rl")
RAGEL_TARGET(ragel_smtp_addr
- ragel/smtp_addr_parser.rl
- ${CMAKE_CURRENT_BINARY_DIR}/smtp_addr_parser.rl.c)
+ INPUTS ragel/smtp_addr_parser.rl
+ DEPENDS ${RAGEL_DEPENDS}
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/smtp_addr_parser.rl.c)
RAGEL_TARGET(ragel_smtp_received
- ragel/smtp_received_parser.rl
- ${CMAKE_CURRENT_BINARY_DIR}/smtp_received_parser.rl.c)
+ INPUTS ragel/smtp_received_parser.rl
+ DEPENDS ${RAGEL_DEPENDS}
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/smtp_received_parser.rl.c)
######################### LINK SECTION ###############################
ADD_LIBRARY(rspamd-server STATIC ${RSPAMD_CRYPTOBOX} ${RSPAMD_UTIL} ${RSPAMD_LUA} ${RSPAMD_SERVER}