summaryrefslogtreecommitdiff
path: root/qpid/cpp/examples
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-07-02 05:46:42 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-07-02 05:46:42 +0000
commitb9c16c0f118317871454fde5ee703c157d88e660 (patch)
tree81a0fed2175e7c72548e1685b953075db094ceb3 /qpid/cpp/examples
parent155482f43f33c6aa5bd44e8ebd767017433d8988 (diff)
downloadqpid-python-b9c16c0f118317871454fde5ee703c157d88e660.tar.gz
Fix cmake build for recent gnu ld which needs all libs used by prog and
dependencies linked into prog, also fix for older versions of cmake with more limited boost support. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@790464 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples')
-rw-r--r--qpid/cpp/examples/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/qpid/cpp/examples/CMakeLists.txt b/qpid/cpp/examples/CMakeLists.txt
index 73931101bc..bfc7e7389d 100644
--- a/qpid/cpp/examples/CMakeLists.txt
+++ b/qpid/cpp/examples/CMakeLists.txt
@@ -42,9 +42,13 @@ 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} qpidclient
+ ${Boost_PROGRAM_OPTIONS_LIBRARY}
+ ${Boost_FILESYSTEM_LIBRARY})
else (${ARGC} GREATER 2)
- target_link_libraries(${subdir}_${example} qpidclient)
+ target_link_libraries(${subdir}_${example} qpidclient
+ ${Boost_PROGRAM_OPTIONS_LIBRARY}
+ ${Boost_FILESYSTEM_LIBRARY})
endif (${ARGC} GREATER 2)
endmacro(add_example)