Skip to content

Commit

Permalink
disable building examples in release process
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Oct 27, 2023
1 parent ad453ef commit 4720cc9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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 .
Expand Down

0 comments on commit 4720cc9

Please sign in to comment.