pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [pulsar] branch master updated: CPP Client - Only require linking with Boost program_options for CLI tools (#3546)
Date Sat, 09 Feb 2019 01:49:41 GMT
This is an automated email from the ASF dual-hosted git repository.

jai1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 98a7d6a  CPP Client - Only require linking with Boost program_options for CLI tools
(#3546)
98a7d6a is described below

commit 98a7d6a4c1c98f059844d955805d9dbdcf15408e
Author: Matteo Merli <mmerli@apache.org>
AuthorDate: Fri Feb 8 17:49:36 2019 -0800

    CPP Client - Only require linking with Boost program_options for CLI tools (#3546)
---
 pulsar-client-cpp/CMakeLists.txt      | 1 -
 pulsar-client-cpp/perf/CMakeLists.txt | 6 ++++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/pulsar-client-cpp/CMakeLists.txt b/pulsar-client-cpp/CMakeLists.txt
index 1a7c73a..6a9261e 100644
--- a/pulsar-client-cpp/CMakeLists.txt
+++ b/pulsar-client-cpp/CMakeLists.txt
@@ -207,7 +207,6 @@ include_directories(
 
 set(COMMON_LIBS
   ${COMMON_LIBS} -lpthread -lm
-  ${Boost_PROGRAM_OPTIONS_LIBRARY}
   ${Boost_REGEX_LIBRARY}
   ${Boost_SYSTEM_LIBRARY}
   ${CURL_LIBRARY_PATH}
diff --git a/pulsar-client-cpp/perf/CMakeLists.txt b/pulsar-client-cpp/perf/CMakeLists.txt
index b3c8dc8..25fb076 100644
--- a/pulsar-client-cpp/perf/CMakeLists.txt
+++ b/pulsar-client-cpp/perf/CMakeLists.txt
@@ -31,5 +31,7 @@ set(PERF_CONSUMER_SOURCES
 add_executable(perfProducer ${PERF_PRODUCER_SOURCES})
 add_executable(perfConsumer ${PERF_CONSUMER_SOURCES})
 
-target_link_libraries(perfProducer pulsarShared ${CLIENT_LIBS})
-target_link_libraries(perfConsumer pulsarShared ${CLIENT_LIBS})
+set(TOOL_LIBS ${CLIENT_LIBS} ${Boost_PROGRAM_OPTIONS_LIBRARY})
+
+target_link_libraries(perfProducer pulsarShared ${TOOL_LIBS})
+target_link_libraries(perfConsumer pulsarShared ${TOOL_LIBS})


Mime
View raw message