Skip to content

Commit db90fde

Browse files
committed
export correct PATH for macOS
1 parent b3970c4 commit db90fde

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci_build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ cmake_install() {
2929
wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.5-$CMAKE_SUFFIX.tar.gz" \
3030
| tar --strip-components=1 -xz -C $CMAKE_INSTALL_DIR
3131

32-
export PATH=$CMAKE_INSTALL_DIR/bin:$PATH
32+
if [ $TRAVIS_OS_NAME = "linux" ]; then
33+
export PATH=$CMAKE_INSTALL_DIR/bin:$PATH
34+
elif [ $TRAVIS_OS_NAME = "osx" ]; then
35+
export PATH=$CMAKE_INSTALL_DIR/CMake.app/Contents/bin:$PATH
36+
fi
3337
cmake --version
3438
}
3539

0 commit comments

Comments
 (0)