Tests: adjust mysql library detection for Travis CI Ubuntu image

This commit is contained in:
Christian Beer 2019-04-20 13:50:22 +02:00
parent a5dad9b895
commit 65096902c1
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ include_directories("${PROJECT_SOURCE_DIR}/../../lib")
include_directories("${PROJECT_SOURCE_DIR}/../../tools")
include_directories("/usr/include/mariadb")
include_directories("/usr/include/mariadb/mysql")
include_directories("/usr/include/mysql")
find_library(GTEST_MAIN_LIB libgtest_main.a PATHS ${PROJECT_SOURCE_DIR}/../../3rdParty/buildCache/linux/lib NO_DEFAULT_PATH)
@ -30,7 +31,7 @@ message(STATUS "gtest_lib: ${GTEST_LIB}")
find_library(SCHED_LIB libsched.a PATHS ${PROJECT_SOURCE_DIR}/../../sched NO_DEFAULT_PATH)
find_library(BOINC_CRYPT_LIB libboinc_crypt.a PATHS ${PROJECT_SOURCE_DIR}/../../lib NO_DEFAULT_PATH)
find_library(BOINC_LIB libboinc.a PATHS ${PROJECT_SOURCE_DIR}/../../lib NO_DEFAULT_PATH)
find_library(MYSQL_LIB NAMES mariadb mysql)
find_library(MYSQL_LIB NAMES mariadb mysqlclient)
message(STATUS "mysql_lib: ${MYSQL_LIB}")
add_subdirectory(lib)