Skip to content

Commit

Permalink
fix example/depend-use-cmake-find
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Oct 25, 2024
1 parent 0e0e1c6 commit ad7efa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/depend-use-cmake-find/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- 编译并安装`boost` `abseil-cpp` `protobuf`或者直接使用`apt`等包管理工具安装对应平台的预编译包
- 编译并安装babylon
- `cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/your/install/path -DCMAKE_PREFIX_PATH=/your/install/path`
- `cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/your/install/path -DCMAKE_PREFIX_PATH=/your/install/path -DBUILD_TESTING=OFF`
- `cmake --build build -j$(nproc)`
- `cmake --install build`
- 增加依赖项到目标项目
Expand Down
2 changes: 1 addition & 1 deletion example/depend-use-cmake-find/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tar xzf $NAME.tar.gz
mv $NAME babylon

cd babylon
cmake -Bbuild -DCMAKE_INSTALL_PREFIX=$PWD/output
cmake -Bbuild -DCMAKE_INSTALL_PREFIX=$PWD/output -DBUILD_TESTING=OFF
cmake --build build
cmake --install build
cd -
Expand Down

0 comments on commit ad7efa3

Please sign in to comment.