Skip to content

Commit

Permalink
I think my build conditionals are wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
william-dawson committed Nov 15, 2023
1 parent 91200d5 commit d2243e4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions UnitTests/run_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ if [[ "$TESTOS" == "OSX" ]]; then
cmake -G Ninja .. -DCMAKE_TOOLCHAIN_FILE=../Targets/Mac-python3.cmake \
-DCMAKE_BUILD_TYPE=Release ;
else
if [ ! -z ${NOIALLGATHER+x} ]; then
cmake -G Ninja .. \
-DCMAKE_BUILD_TYPE=Debug -DNOIALLGATHER=YES;
elif [ ! -z ${DEBUG+x} ]; then
if [[ "${NOIALLGATHER:-0}" -eq 1 ]]; then
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Debug -DNOIALLGATHER=YES;
elif [[ "${DEBUG:-0}" -eq 1 ]]; then
cmake -G Ninja .. -DCMAKE_TOOLCHAIN_FILE=../Targets/Linux.cmake \
-DCMAKE_BUILD_TYPE=Debug ;
-DCMAKE_BUILD_TYPE=Debug;
else
cmake -G Ninja .. -DCMAKE_TOOLCHAIN_FILE=../Targets/Linux.cmake \
-DCMAKE_BUILD_TYPE=Release ;
-DCMAKE_BUILD_TYPE=Release;
fi
fi

Expand Down

0 comments on commit d2243e4

Please sign in to comment.