From f99cb0e41b31500bac687fb3a7cfc972c64b7235 Mon Sep 17 00:00:00 2001 From: Yunze Xu Date: Mon, 5 Jun 2023 00:01:16 +0800 Subject: [PATCH] [docs] Fix the developer guide for macOS users ### Motivation We don't need to install `boost-python3`, which was required for the Python wrapper that is independent now. And the latest `googletest` dependency requires the C++14 support so that we need to pass an extra CMake option for it. See https://github.com/apache/pulsar-client-cpp/pull/269 --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 208c4e95..ffbc4e4a 100644 --- a/README.md +++ b/README.md @@ -131,20 +131,27 @@ perf/perfConsumer #### Install all dependencies: ```shell -brew install cmake openssl protobuf boost boost-python3 googletest zstd snappy +brew install cmake openssl protobuf boost googletest zstd snappy ``` #### Compile Pulsar client library: ```shell -cmake . +cmake . -DCMAKE_CXX_STANDARD=14 +make +``` + +You need to configure `CMAKE_CXX_STANDARD` with 14 because the latest `googletest` dependency from HomeBrew requires the C++14 support. If you don't want to build tests, you can run: + +```bash +cmake . -DBUILD_TESTS=OFF make ``` If you want to build performance tools, you need to run: ```shell -cmake . -DBUILD_PERF_TOOLS=ON +cmake . -DBUILD_PERF_TOOLS=ON -DCMAKE_CXX_STANDARD=14 make ```