Remove dependencies on FLEX/BISON targets

The FLEX and BISON targets don't seem to be actual CMake targets which
cause warnings to be emitted.
This commit is contained in:
Markus Mäkelä 2017-05-09 16:22:55 +03:00
parent 157b7f853b
commit 370cff3528

View File

@ -10,13 +10,11 @@ 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}")