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.
This commit is contained in:
@ -16,6 +16,9 @@ if (TARGET_COMPONENT)
|
|||||||
list(FIND TARGET_COMPONENT "all" BUILD_ALL)
|
list(FIND TARGET_COMPONENT "all" BUILD_ALL)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Name of the common core library
|
||||||
|
set(MAXSCALE_CORE maxscale-common)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Installation functions for MaxScale
|
# Installation functions for MaxScale
|
||||||
#
|
#
|
||||||
@ -56,6 +59,8 @@ function(install_module target component)
|
|||||||
install(TARGETS ${target} DESTINATION ${MAXSCALE_LIBDIR} COMPONENT "${component}")
|
install(TARGETS ${target} DESTINATION ${MAXSCALE_LIBDIR} COMPONENT "${component}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Make all modules dependent on the core
|
||||||
|
add_dependencies(${target} ${MAXSCALE_CORE})
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# Installation functions for interpreted scripts.
|
# Installation functions for interpreted scripts.
|
||||||
|
Reference in New Issue
Block a user