From 0ea58ea6bcbecdae9bf3adb0f901b175a4f88d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 9 May 2017 08:08:05 +0300 Subject: [PATCH] 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. --- server/modules/filter/dbfwfilter/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/modules/filter/dbfwfilter/CMakeLists.txt b/server/modules/filter/dbfwfilter/CMakeLists.txt index 8f03ad2b0..93c08c498 100644 --- a/server/modules/filter/dbfwfilter/CMakeLists.txt +++ b/server/modules/filter/dbfwfilter/CMakeLists.txt @@ -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}")