Add workaround to building tests without all dependencies

The system tests can be build even if not all of the dependencies for
MaxScale are met.
This commit is contained in:
Markus Mäkelä
2018-08-18 21:08:51 +03:00
parent 67df3ad4f0
commit d428292ec0
5 changed files with 9 additions and 5 deletions

View File

@ -24,6 +24,8 @@ if(BISON_FOUND AND FLEX_FOUND)
if(BUILD_TESTS)
add_subdirectory(test)
endif()
elseif (BUILD_SYSTEM_TESTS)
message(STATUS "Not building dbfwfilter when tests are built and both flex and bison were not found")
else()
message(FATAL_ERROR "Could not find Bison or Flex: ${BISON_EXECUTABLE} ${FLEX_EXECUTABLE}")
endif()