From 4720cc9cfaf6956a8e895b2bbbfa83cd7124f2fd Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Fri, 27 Oct 2023 09:32:54 -0700 Subject: [PATCH] disable building examples in release process --- scripts/build-release.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/build-release.sh b/scripts/build-release.sh index c06d26824..d162edf15 100755 --- a/scripts/build-release.sh +++ b/scripts/build-release.sh @@ -8,7 +8,10 @@ set -e # Build a static release. mkdir -p build-static && cd build-static mkdir -p release -cmake -G Ninja -D CMAKE_BUILD_TYPE=Release -D BUILD_TESTING=OFF -D CMAKE_INSTALL_PREFIX=./release .. +cmake -G Ninja -D CMAKE_BUILD_TYPE=Release \ + -D BUILD_TESTING=OFF \ + -D LD_BUILD_EXAMPLES=OFF \ + -D CMAKE_INSTALL_PREFIX=./release .. cmake --build . --target "$1" cmake --install . @@ -17,7 +20,11 @@ cd .. # Build a dynamic release. mkdir -p build-dynamic && cd build-dynamic mkdir -p release -cmake -G Ninja -D CMAKE_BUILD_TYPE=Release -D BUILD_TESTING=OFF -D LD_BUILD_SHARED_LIBS=ON -D CMAKE_INSTALL_PREFIX=./release .. +cmake -G Ninja -D CMAKE_BUILD_TYPE=Release \ + -D BUILD_TESTING=OFF \ + -D LD_BUILD_EXAMPLES=OFF \ + -D LD_BUILD_SHARED_LIBS=ON \ + -D CMAKE_INSTALL_PREFIX=./release .. cmake --build . --target "$1" cmake --install .