From 1ed8aa63efcd2904ce2c5b2a6b51e4513d3eae03 Mon Sep 17 00:00:00 2001 From: "Darryl L. Pierce" Date: Fri, 5 Apr 2013 15:41:58 +0000 Subject: QPID-4704: Build legacystore.so as a module, not a shared library. Fixes the legacystore.cmake file to build the file appropriately, and als includes a directive to install the module along with others. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1465015 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/legacystore.cmake | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cpp') diff --git a/cpp/src/legacystore.cmake b/cpp/src/legacystore.cmake index 10a166f50c..d3c1ea7f7c 100644 --- a/cpp/src/legacystore.cmake +++ b/cpp/src/legacystore.cmake @@ -132,17 +132,16 @@ if (BUILD_LEGACYSTORE) "#include <${DB_INCLUDE_DIR}/db_cxx.h>") endif() - add_library (legacystore SHARED + add_library (legacystore MODULE ${legacy_jrnl_SOURCES} ${legacy_store_SOURCES} ${legacy_qmf_SOURCES} ) - + set_target_properties (legacystore PROPERTIES PREFIX "" COMPILE_DEFINITIONS _IN_QPID_BROKER OUTPUT_NAME legacystore - SOVERSION ${legacystore_version} INCLUDE_DIRECTORIES "${legacy_include_DIRECTORIES}" ) @@ -152,6 +151,11 @@ if (BUILD_LEGACYSTORE) qpidcommon qpidtypes qpidbroker ${DB_LIBRARY} ) + +install(TARGETS legacystore + DESTINATION ${QPIDD_MODULE_DIR} + COMPONENT ${QPID_COMPONENT_BROKER}) + else (BUILD_LEGACYSTORE) message(STATUS "Legacystore is excluded from build.") endif (BUILD_LEGACYSTORE) -- cgit v1.2.1