sijie closed pull request #1635: Also look for the '_static' suffix when searching for libjsoncpp.a URL: https://github.com/apache/incubator-pulsar/pull/1635
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/pulsar-client-cpp/CMakeLists.txt b/pulsar-client-cpp/CMakeLists.txt index d99f7a8ee..d71590e12 100644 --- a/pulsar-client-cpp/CMakeLists.txt +++ b/pulsar-client-cpp/CMakeLists.txt @@ -56,7 +56,7 @@ if (LINK_STATIC) find_library(ZLIB_LIBRARY_PATH REQUIRED NAMES libz.a z) find_library(PROTOBUF_LIBRARIES NAMES libprotobuf.a) find_library(CURL_LIBRARY_PATH NAMES libcurl.a curl) - find_library(LIB_JSON NAMES libjsoncpp.a) + find_library(LIB_JSON NAMES libjsoncpp.a libjsoncpp_static.a) find_library(LOG4CXX_LIBRARY_PATH NAMES liblog4cxx.a) # Libraries needed by log4cxx to link statically with ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services