Skip to content

Commit

Permalink
Update run script to ensure I use Qt5
Browse files Browse the repository at this point in the history
Qt6 will force C++17 so that is no good for this.
  • Loading branch information
jesperkdab committed Jul 26, 2024
1 parent 4bc3a80 commit 3321a60
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions run
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#! /bin/sh
#! /bin/bash

if [[ $PATH != *"5.15"* ]]; then
echo "Please setup Qt5, as Qt6 will force C++17"
exit
fi

rm -rf build
for compiler in gcc clang; do
for cpp in cpp14 cpp17 cpp20 cpp23; do
echo "========= $compiler - $cpp ==========="
echo -e "\n\n========= $compiler - $cpp ==========="
cmake --preset $cpp-$compiler .
cd build/$cpp-$compiler
ninja || exit 1
Expand All @@ -13,12 +18,12 @@ done

for compiler in gcc clang; do
for cpp in cpp14 cpp17 cpp20 cpp23; do
echo "\n\n========= $compiler - $cpp ==========="
echo -e "\n\n========= $compiler - $cpp ==========="
cd build/$cpp-$compiler
./tst_kdalgorithms -silent

if [ ! $? -eq 0 ]; then
echo "\n\n\n FAILURE \n\n\n"
echo -e "\n\n\n FAILURE \n\n\n"
exit 1
fi

Expand Down

0 comments on commit 3321a60

Please sign in to comment.