Introduce --enable-static-broker configuration option.

This option will build the bundled broker (and caf) statically.
This commit is contained in:
Johanna Amann 2018-12-06 11:40:12 -08:00
parent 5249a16384
commit f7ad94f757
3 changed files with 13 additions and 2 deletions

View file

@ -271,9 +271,16 @@ if ( BROKER_ROOT_DIR )
set(brodeps ${brodeps} ${BROKER_LIBRARY} ${CAF_LIBRARIES})
include_directories(BEFORE ${BROKER_INCLUDE_DIR})
else ()
if ( BUILD_STATIC_BROKER )
set(ENABLE_STATIC_ONLY true)
endif()
add_subdirectory(aux/broker)
set(brodeps ${brodeps} broker)
if ( BUILD_STATIC_BROKER )
set(brodeps ${brodeps} broker_static)
else()
set(brodeps ${brodeps} broker)
endif()
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/aux/broker
${CMAKE_CURRENT_BINARY_DIR}/aux/broker)
endif ()