diff --git a/server/modules/routing/cli/CMakeLists.txt b/server/modules/routing/cli/CMakeLists.txt index f6fe940c5..697905e08 100644 --- a/server/modules/routing/cli/CMakeLists.txt +++ b/server/modules/routing/cli/CMakeLists.txt @@ -1,5 +1,4 @@ add_library(cli SHARED cli.cc ../debugcli/debugcmd.cc) target_link_libraries(cli maxscale-common) -set_target_properties(cli PROPERTIES VERSION "1.0.0") -# Can't add `LINK_FLAGS -Wl,-z,defs` as the module uses maxscale_shutdown() which is defined in gateway.cc +set_target_properties(cli PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(cli core) diff --git a/server/modules/routing/debugcli/CMakeLists.txt b/server/modules/routing/debugcli/CMakeLists.txt index 12ebf1407..869727069 100644 --- a/server/modules/routing/debugcli/CMakeLists.txt +++ b/server/modules/routing/debugcli/CMakeLists.txt @@ -1,5 +1,4 @@ add_library(debugcli SHARED debugcli.cc debugcmd.cc) target_link_libraries(debugcli maxscale-common) -set_target_properties(debugcli PROPERTIES VERSION "1.1.1") -# Can't add `LINK_FLAGS -Wl,-z,defs` as the module uses maxscale_shutdown() which is defined in gateway.cc +set_target_properties(debugcli PROPERTIES VERSION "1.1.1" LINK_FLAGS -Wl,-z,defs) install_module(debugcli core) diff --git a/server/modules/routing/maxinfo/CMakeLists.txt b/server/modules/routing/maxinfo/CMakeLists.txt index a4aa731c2..0df4ae87d 100644 --- a/server/modules/routing/maxinfo/CMakeLists.txt +++ b/server/modules/routing/maxinfo/CMakeLists.txt @@ -1,5 +1,4 @@ add_library(maxinfo SHARED maxinfo.cc maxinfo_parse.cc maxinfo_error.cc maxinfo_exec.cc) -set_target_properties(maxinfo PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_RPATH}:${MAXSCALE_LIBDIR} VERSION "1.0.0") -# Can't add `LINK_FLAGS -Wl,-z,defs` as the module uses maxscale_shutdown() which is defined in gateway.cc +set_target_properties(maxinfo PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_RPATH}:${MAXSCALE_LIBDIR} VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) target_link_libraries(maxinfo maxscale-common) install_module(maxinfo core)