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

@ -19,7 +19,7 @@ if (BUILD_MAXCTRL)
${CMAKE_BINARY_DIR}/maxctrl-test/ # Location where tests are built and run
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
else()
elseif(NOT BUILD_SYSTEM_TESTS)
message(FATAL_ERROR "Not building MaxCtrl: npm or Node.js >= 6.0.0 not found. Add the following to skip MaxCtrl: -DBUILD_MAXCTRL=N")
endif()
else()