From db90fde58c5d31660cdc128b8ffcf278a7c12de1 Mon Sep 17 00:00:00 2001 From: Alberto Invernizzi Date: Sun, 27 Jun 2021 19:47:16 +0200 Subject: [PATCH] export correct PATH for macOS --- ci_build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci_build.sh b/ci_build.sh index 9a4e8f6..341ffd9 100755 --- a/ci_build.sh +++ b/ci_build.sh @@ -29,7 +29,11 @@ cmake_install() { wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.5-$CMAKE_SUFFIX.tar.gz" \ | tar --strip-components=1 -xz -C $CMAKE_INSTALL_DIR - export PATH=$CMAKE_INSTALL_DIR/bin:$PATH + if [ $TRAVIS_OS_NAME = "linux" ]; then + export PATH=$CMAKE_INSTALL_DIR/bin:$PATH + elif [ $TRAVIS_OS_NAME = "osx" ]; then + export PATH=$CMAKE_INSTALL_DIR/CMake.app/Contents/bin:$PATH + fi cmake --version }