From ad7efa311ddbb52ff4162664bbfbcf2d6c1ca020 Mon Sep 17 00:00:00 2001 From: Kevin Li Date: Fri, 25 Oct 2024 10:20:53 +0800 Subject: [PATCH] fix example/depend-use-cmake-find --- example/depend-use-cmake-find/README.md | 2 +- example/depend-use-cmake-find/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/depend-use-cmake-find/README.md b/example/depend-use-cmake-find/README.md index d686f0fa..2dc5230d 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 ab2ab4ab..51500f25 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 -