diff --git a/server/modules/routing/schemarouter/test/CMakeLists.txt b/server/modules/routing/schemarouter/test/CMakeLists.txt index 1d1bbcc3d..1a4150ba4 100644 --- a/server/modules/routing/schemarouter/test/CMakeLists.txt +++ b/server/modules/routing/schemarouter/test/CMakeLists.txt @@ -1,9 +1,9 @@ if(MYSQLCLIENT_FOUND AND BUILD_TESTS) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/test.cmake @ONLY) add_executable(testschemarouter testschemarouter.c) - target_link_libraries(testschemarouter ${MARIADB_CONNECTOR_LIB} ssl crypto dl z m rt pthread) + target_link_libraries(testschemarouter maxscale-common) add_executable(testschemarouter2 testschemarouter2.c) - target_link_libraries(testschemarouter2 ${MARIADB_CONNECTOR_LIB} ssl crypto dl z m rt pthread) + target_link_libraries(testschemarouter2 maxscale-common) add_test(NAME TestSchemaRouter COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/test.cmake) endif() diff --git a/server/modules/routing/test/CMakeLists.txt b/server/modules/routing/test/CMakeLists.txt index fc622c4df..83233399c 100644 --- a/server/modules/routing/test/CMakeLists.txt +++ b/server/modules/routing/test/CMakeLists.txt @@ -1,6 +1,6 @@ if(MYSQLCLIENT_FOUND) add_executable(testconnect testconnect.c) message(STATUS "Linking against: ${MARIADB_CONNECTOR_LIB}") - target_link_libraries(testconnect ${MARIADB_CONNECTOR_LIB} ssl crypto dl z m rt pthread) + target_link_libraries(testconnect maxscale-common) add_test(NAME ReadConnRouterAuthTest COMMAND $ 10000 ${TEST_HOST} ${MASTER_PORT} ${TEST_HOST} ${TEST_PORT} 1.10) endif()