Add dependency on FLEX/BISON parts for dbfwfilter

The dbfwfilter didn't depend on the two targets which could cause
compilation problems when running a parallel build.
This commit is contained in:
Markus Mäkelä
2017-05-09 08:08:05 +03:00
parent c7cffa0722
commit 0ea58ea6bc

View File

@ -10,11 +10,13 @@ if(BISON_FOUND AND FLEX_FOUND)
target_link_libraries(dbfwfilter maxscale-common)
set_target_properties(dbfwfilter PROPERTIES VERSION "1.0.0")
install_module(dbfwfilter core)
add_dependencies(dbfwfilter token ruleparser)
# The offline rule check utility
add_executable(dbfwchk dbfw_rule_check.c ${BISON_ruleparser_OUTPUTS} ${FLEX_token_OUTPUTS})
target_link_libraries(dbfwchk maxscale-common)
install_executable(dbfwchk core)
add_dependencies(dbfwchk token ruleparser)
else()
message(FATAL_ERROR "Could not find Bison or Flex: ${BISON_EXECUTABLE} ${FLEX_EXECUTABLE}")