diff --git a/example/depend-use-cmake-find/README.md b/example/depend-use-cmake-find/README.md index d686f0f..2dc5230 100644 --- a/example/depend-use-cmake-find/README.md +++ b/example/depend-use-cmake-find/README.md @@ -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` - 增加依赖项到目标项目 diff --git a/example/depend-use-cmake-find/build.sh b/example/depend-use-cmake-find/build.sh index ab2ab4a..51500f2 100755 --- a/example/depend-use-cmake-find/build.sh +++ b/example/depend-use-cmake-find/build.sh @@ -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 -