diff options
author | Allen Winter <allen.winter@kdab.com> | 2022-10-05 09:47:18 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2022-10-05 09:47:18 -0400 |
commit | 516b7eb7991183d009c6dc47344a365f709c7e35 (patch) | |
tree | d995db812bd5310ad364c1c2fda1323fc0353334 | |
parent | 0fe0d9d4ef152243f47f9c8e17520d10a67ba2c6 (diff) | |
download | libical-git-516b7eb7991183d009c6dc47344a365f709c7e35.tar.gz |
scripts/buildtests.sh - ensure cmake "Unix Makefiles" generator
If the user has CMAKE_GENERATOR="Ninja" in their environment
then we need to override that, for the normal, non-ninja case.
-rwxr-xr-x | scripts/buildtests.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/buildtests.sh b/scripts/buildtests.sh index c379ddce..22824940 100755 --- a/scripts/buildtests.sh +++ b/scripts/buildtests.sh @@ -138,7 +138,12 @@ CONFIGURE() { mkdir -p $BDIR cd $BDIR rm -rf * - cmake .. $2 || exit 1 + if ( test `echo $2 | grep -ci Ninja` -gt 0 ) + then + cmake .. $2 || exit 1 + else + cmake -G "Unix Makefiles" .. $2 || exit 1 + fi } #function CLEAN: |