You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by li...@apache.org on 2022/06/10 02:11:52 UTC

[pulsar] branch master updated: [fix][doc] Adjust the install command of the gtest and gmock in document (#15980)

This is an automated email from the ASF dual-hosted git repository.

liuyu 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 8f1543cac16 [fix][doc] Adjust the install command of the gtest and gmock in document (#15980)
8f1543cac16 is described below

commit 8f1543cac16b3f98537558e0b56b6c2172607cfa
Author: Guoxiong Li <lg...@gmail.com>
AuthorDate: Fri Jun 10 10:11:46 2022 +0800

    [fix][doc] Adjust the install command of the gtest and gmock in document (#15980)
---
 pulsar-client-cpp/README.md | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/pulsar-client-cpp/README.md b/pulsar-client-cpp/README.md
index d06071ee262..f5265577e45 100644
--- a/pulsar-client-cpp/README.md
+++ b/pulsar-client-cpp/README.md
@@ -103,7 +103,10 @@ apt-get install -y g++ cmake libssl-dev libcurl4-openssl-dev liblog4cxx-dev \
 cd /usr/src/gtest
 sudo cmake .
 sudo make
-sudo cp *.a /usr/lib
+
+# Copy the libraries you just built to the OS library path.
+# GTEST_LIB_PATH may be `/usr/src/gtest`, `/usr/src/gtest/lib` or other path you provided when building gtest above.
+sudo cp ${GTEST_LIB_PATH}/*.a /usr/lib
 ```
 
 
@@ -113,7 +116,10 @@ sudo cp *.a /usr/lib
 cd /usr/src/gmock
 sudo cmake .
 sudo make
-sudo cp *.a /usr/lib
+
+# Copy the libraries you just built to the OS library path.
+# GMOCK_LIB_PATH may be `/usr/src/gmock`, `/usr/src/gmock/lib` or other path you provided when building gmock above.
+sudo cp ${GMOCK_LIB_PATH}/*.a /usr/lib
 ```