Make CMake configurable in test script

pull/748/head
Jeffrey Walton 2018-11-18 18:54:57 -05:00
parent b65ff5293a
commit a82e766925
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 2 deletions

View File

@ -41,12 +41,12 @@ cd "$PWD_DIR/cmake_build"
if [[ ! -z "$CXX" ]]; if [[ ! -z "$CXX" ]];
then then
if ! CXX="$CXX" cmake -DCMAKE_CXX_COMPILER="$CXX" ../; then if ! CXX="$CXX" "$CMAKE" -DCMAKE_CXX_COMPILER="$CXX" ../; then
echo "cmake failed" echo "cmake failed"
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1
fi fi
else else
if ! cmake ../; then if ! "$CMAKE" ../; then
echo "cmake failed" echo "cmake failed"
[[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1
fi fi