From 4d72569d1dcf7d0d421f66d19b4242c3596656bb Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Tue, 15 Dec 2009 17:07:13 +0000 Subject: The spout/drain examples have qpid::Options usage which inlines the boost::program_options usage. This requires linking boost_program_options in the examples, not via qpidcommon. Adjust the Windows options to handle this. Resolves QPID-2212. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@890888 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/examples/messaging/CMakeLists.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'qpid/cpp/examples/messaging') diff --git a/qpid/cpp/examples/messaging/CMakeLists.txt b/qpid/cpp/examples/messaging/CMakeLists.txt index 88ab81dae9..b2b2bc3e43 100644 --- a/qpid/cpp/examples/messaging/CMakeLists.txt +++ b/qpid/cpp/examples/messaging/CMakeLists.txt @@ -17,12 +17,10 @@ # under the License. # -# disabling spout & drain on windows until build issues are resolved -# (QPID-2212): -if (NOT MSVC) - add_example(messaging drain) - add_example(messaging spout) -endif (NOT MSVC) +# drain and spout have explicit Boost.program_options usage in them, so be +# sure that lib is linked in. +add_example(messaging drain ${Boost_PROGRAM_OPTIONS_LIBRARY}) +add_example(messaging spout ${Boost_PROGRAM_OPTIONS_LIBRARY}) add_example(messaging queue_receiver) add_example(messaging queue_sender) -- cgit v1.2.1