diff --git a/.travis.yml b/.travis.yml index 94003a4..d9953a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -109,14 +109,14 @@ matrix: before_script: - mkdir -p /tmp/cmake.root - | - if [ $TRAVIS_OS_SUFFIX = 'linux' ]; then + if [ $TRAVIS_OS_NAME = 'linux' ]; then CMAKE_PKG_SUFFIX="linux-x86_64" else CMAKE_PKG_SUFFIX="macos10.10-universal" fi - wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.5-$CMAKE_PKG_SUFFIX.tar.gz" | tar --strip-components=1 -xz -C /tmp/cmake.root - | - if [ $TRAVIS_OS_SUFFIX = 'linux' ]; then + if [ $TRAVIS_OS_NAME = 'linux' ]; then CMAKE_BIN_DIR="bin" else CMAKE_BIN_DIR="CMake.app/Contents/bin"