From 1fdfd9b2acf01699e8fb7ac7b08c1f532587b1a8 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Tue, 3 Sep 2013 22:09:17 +0000 Subject: QPID-5111: Make library dependencies clearer in build system - Use -as-needed to link libraries to avoid unnecessary libraries - Tidyup mess with nss and qpid-proton libraries git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1519866 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/bindings/qmf2/examples/cpp/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/bindings') diff --git a/qpid/cpp/bindings/qmf2/examples/cpp/CMakeLists.txt b/qpid/cpp/bindings/qmf2/examples/cpp/CMakeLists.txt index 884e614c0f..0e1e00d34e 100644 --- a/qpid/cpp/bindings/qmf2/examples/cpp/CMakeLists.txt +++ b/qpid/cpp/bindings/qmf2/examples/cpp/CMakeLists.txt @@ -57,10 +57,10 @@ macro(add_example subdir example) add_executable(${subdir}_${example} ${example}.cpp) set_target_properties(${subdir}_${example} PROPERTIES OUTPUT_NAME ${example}) if (${ARGC} GREATER 2) - target_link_libraries(${subdir}_${example} ${ARGN} qpidclient + target_link_libraries(${subdir}_${example} ${ARGN} qpidmessaging qpidtypes ${_boost_libs_needed}) else (${ARGC} GREATER 2) - target_link_libraries(${subdir}_${example} qpidclient + target_link_libraries(${subdir}_${example} qpidmessaging qpidtypes ${_boost_libs_needed}) endif (${ARGC} GREATER 2) endmacro(add_example) -- cgit v1.2.1