From 82846785a71f9bf4aefc7e33ad3d919797ee9557 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Mon, 12 Sep 2016 16:09:48 +0300 Subject: [PATCH] Make modules depend on maxscale-core All modules which are now installed automatically depend on the maxscale-core target. This fixes concurrent builds failing due to missing libraries. --- cmake/install_layout.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/install_layout.cmake b/cmake/install_layout.cmake index 47bd0de6a..85ba4b75c 100644 --- a/cmake/install_layout.cmake +++ b/cmake/install_layout.cmake @@ -16,6 +16,9 @@ if (TARGET_COMPONENT) list(FIND TARGET_COMPONENT "all" BUILD_ALL) endif() +# Name of the common core library +set(MAXSCALE_CORE maxscale-common) + # # Installation functions for MaxScale # @@ -56,6 +59,8 @@ function(install_module target component) install(TARGETS ${target} DESTINATION ${MAXSCALE_LIBDIR} COMPONENT "${component}") endif() + # Make all modules dependent on the core + add_dependencies(${target} ${MAXSCALE_CORE}) endfunction() # Installation functions for interpreted scripts.