You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by lo...@apache.org on 2022/07/14 02:12:13 UTC

[incubator-brpc] branch master updated: doc: update compiling with cmake

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

lorinlee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new ec73b99f doc: update compiling with cmake
     new da1fc138 Merge pull request #1837 from wasphin/feature/update-getting-start
ec73b99f is described below

commit ec73b99fe61aa759a7daa6c2a54077c1a5f41a98
Author: Xiaofeng Wang <wa...@gmail.com>
AuthorDate: Wed Jul 13 22:45:52 2022 +0800

    doc: update compiling with cmake
---
 docs/cn/getting_started.md | 5 +++++
 docs/en/getting_started.md | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/docs/cn/getting_started.md b/docs/cn/getting_started.md
index 2602f5b4..63a0e08e 100644
--- a/docs/cn/getting_started.md
+++ b/docs/cn/getting_started.md
@@ -74,6 +74,11 @@ $ sh run_tests.sh
 ```
 
 ### 使用cmake编译brpc
+
+```shell
+mkdir build && cd build && cmake .. && cmake --build . -j6
+```
+对于 cmake 3.13+ 也可以使用如下命令进行编译:
 ```shell
 cmake -B build && cmake --build build -j6
 ```
diff --git a/docs/en/getting_started.md b/docs/en/getting_started.md
index c500f580..c645971b 100644
--- a/docs/en/getting_started.md
+++ b/docs/en/getting_started.md
@@ -75,6 +75,10 @@ $ sh run_tests.sh
 
 ### Compile brpc with cmake
 ```shell
+mkdir build && cd build && cmake .. && cmake --build . -j6
+```
+With CMake 3.13+, we can also use the following commands to build the project:
+```shell
 cmake -B build && cmake --build build -j6
 ```
 To help VSCode or Emacs(LSP) to understand code correctly, add `-DCMAKE_EXPORT_COMPILE_COMMANDS=ON` to generate `compile_commands.json`


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org