summaryrefslogtreecommitdiff
path: root/cpp/examples/messaging
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/examples/messaging')
-rw-r--r--cpp/examples/messaging/CMakeLists.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/cpp/examples/messaging/CMakeLists.txt b/cpp/examples/messaging/CMakeLists.txt
index 88ab81dae9..b2b2bc3e43 100644
--- a/cpp/examples/messaging/CMakeLists.txt
+++ b/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)