Skip to content

Commit

Permalink
add fallback when ninja fails
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtGokhan committed Apr 7, 2024
1 parent ad8f308 commit b535c4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate_build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ rm -rf build

if which ninja; then
set -e
cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON -G Ninja "$@"
cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON -G Ninja "$@" \
|| cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON "$@"
else
set -e
cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON "$@"
Expand Down

0 comments on commit b535c4d

Please sign in to comment.