diff options
author | Stephen D. Huston <shuston@apache.org> | 2009-12-15 17:07:13 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2009-12-15 17:07:13 +0000 |
commit | 4d72569d1dcf7d0d421f66d19b4242c3596656bb (patch) | |
tree | 2b502c34be8378b2c86c5e6a1e279951f9b11f12 | |
parent | f7c59a259c5c725a95478c2b756673c7702505b4 (diff) | |
download | qpid-python-4d72569d1dcf7d0d421f66d19b4242c3596656bb.tar.gz |
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
-rw-r--r-- | qpid/cpp/examples/CMakeLists.txt | 4 | ||||
-rw-r--r-- | qpid/cpp/examples/messaging/CMakeLists.txt | 10 |
2 files changed, 5 insertions, 9 deletions
diff --git a/qpid/cpp/examples/CMakeLists.txt b/qpid/cpp/examples/CMakeLists.txt index de74d9cf39..7ecffed4bb 100644 --- a/qpid/cpp/examples/CMakeLists.txt +++ b/qpid/cpp/examples/CMakeLists.txt @@ -39,13 +39,11 @@ link_directories( ${Boost_LIBRARY_DIRS} ) # resolved via the Qpid libs. if (MSVC) add_definitions( /D "NOMINMAX" /D "WIN32_LEAN_AND_MEAN" /D "BOOST_ALL_DYN_LINK" ) - set(Boost_PROGRAM_OPTIONS_LIBRARY "") - set(Boost_FILESYSTEM_LIBRARY "") # On Windows, prevent the accidental inclusion of Boost headers from # autolinking in the Boost libs. There should be no direct references to # Boost in the examples, and references via qpidclient/qpidcommon are # resolved in the Qpid libs. - add_definitions( /D "BOOST_ALL_DYN_LINK" /D "BOOST_ALL_NO_LIB" ) + add_definitions( /D "BOOST_ALL_NO_LIB" ) else (MSVC) set(_boost_libs_needed ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_FILESYSTEM_LIBRARY}) 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) |