From 6b22865f7d8e47cfafe711c65bac324dd5cdf73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 14 Sep 2017 19:27:31 +0300 Subject: [PATCH] MXS-1413: Make the library dynamic The static library cannot be linked to the Jansson static library by CMake. This appears to be a limitation in CMake and a manual combination of the two files would be required. For the time being, the connector is only built as a shared library. --- maxscale-system-test/cdc_connector/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maxscale-system-test/cdc_connector/CMakeLists.txt b/maxscale-system-test/cdc_connector/CMakeLists.txt index acdac8897..6164df48b 100644 --- a/maxscale-system-test/cdc_connector/CMakeLists.txt +++ b/maxscale-system-test/cdc_connector/CMakeLists.txt @@ -12,8 +12,8 @@ set(CMAKE_CXX_FLAGS_RELEASE "-fPIC -std=c++0x -O2") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-fPIC -std=c++0x -O2") include_directories(${JANSSON_INCLUDE_DIR}) -add_library(cdc_connector STATIC cdc_connector.cpp) -target_link_libraries(cdc_connector ${JANSSON_LIBRARIES}) +add_library(cdc_connector SHARED cdc_connector.cpp) +target_link_libraries(cdc_connector ${JANSSON_LIBRARIES} crypto) add_dependencies(cdc_connector jansson) install(TARGETS cdc_connector DESTINATION lib) install(FILES cdc_connector.h DESTINATION include)