Skip to content

Commit a30b998

Browse files
committed
Update run script to ensure I use Qt5
Qt6 will force C++17 so that is no good for this.
1 parent 4bc3a80 commit a30b998

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

run

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
#! /bin/sh
1+
#! /bin/bash
2+
3+
if [[ $PATH != *"5.15"* ]]; then
4+
echo "Please setup Qt5, as Qt6 will force C++17"
5+
exit
6+
fi
27

38
rm -rf build
49
for compiler in gcc clang; do
510
for cpp in cpp14 cpp17 cpp20 cpp23; do
6-
echo "========= $compiler - $cpp ==========="
11+
echo -e "\n\n========= $compiler - $cpp ==========="
712
cmake --preset $cpp-$compiler .
813
cd build/$cpp-$compiler
914
ninja || exit 1
@@ -13,12 +18,12 @@ done
1318

1419
for compiler in gcc clang; do
1520
for cpp in cpp14 cpp17 cpp20 cpp23; do
16-
echo "\n\n========= $compiler - $cpp ==========="
21+
echo -e "\n\n========= $compiler - $cpp ==========="
1722
cd build/$cpp-$compiler
1823
./tst_kdalgorithms -silent
1924

2025
if [ ! $? -eq 0 ]; then
21-
echo "\n\n\n FAILURE \n\n\n"
26+
echo -e "\n\n\n FAILURE \n\n\n"
2227
exit 1
2328
fi
2429

0 commit comments

Comments
 (0)