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

@ -1,4 +1,4 @@
if(SQLITE_VERSION VERSION_LESS 3.3)
if(SQLITE_VERSION VERSION_LESS 3.3 AND NOT BUILD_SYSTEM_TESTS)
message(FATAL_ERROR "SQLite version 3.3 or higher is required")
else()
add_library(mysqlauth SHARED mysql_auth.cc dbusers.cc)