diff --git a/CMakeLists.txt b/CMakeLists.txt index bbad70fc..2492f653 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ # under the License. # -cmake_minimum_required(VERSION 3.4) +cmake_minimum_required(VERSION 3.13) project (pulsar-cpp) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake_modules") @@ -290,7 +290,7 @@ if (NOT APPLE AND NOT MSVC) # Hide all non-exported symbols to avoid conflicts add_compile_options(-fvisibility=hidden) if (CMAKE_COMPILER_IS_GNUCC) - add_compile_options(-Wl,--exclude-libs,ALL) + add_link_options(-Wl,--exclude-libs=ALL) endif () endif () diff --git a/README.md b/README.md index 1588bd7b..ea0ccb7d 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Pulsar C++ client uses [doxygen](https://www.doxygen.nl) to build API documents. ## Requirements * A C++ compiler that supports C++11, like GCC >= 4.8 -* CMake >= 3.4 +* CMake >= 3.13 * [Boost](http://www.boost.org/) * [Protocol Buffer](https://developers.google.com/protocol-buffers/) >= 3 * [libcurl](https://curl.se/libcurl/)