Skip to content

Commit 1ae57c9

Browse files
authored
Merge pull request #496 from albestro/update_cmake_ci
Update CMake in CI
2 parents 8e60667 + e748f5f commit 1ae57c9

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,23 @@ matrix:
106106
# packages:
107107
# - clang-5.0
108108

109+
before_script:
110+
- mkdir -p /tmp/cmake.root
111+
- |
112+
if [ $TRAVIS_OS_NAME = 'linux' ]; then
113+
CMAKE_PKG_SUFFIX="linux-x86_64"
114+
else
115+
CMAKE_PKG_SUFFIX="macos10.10-universal"
116+
fi
117+
- 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
118+
- |
119+
if [ $TRAVIS_OS_NAME = 'linux' ]; then
120+
CMAKE_BIN_DIR="bin"
121+
else
122+
CMAKE_BIN_DIR="CMake.app/Contents/bin"
123+
fi
124+
- export PATH=/tmp/cmake.root/$CMAKE_BIN_DIR:$PATH
125+
109126
# Build and check this project
110127
script:
111128
- eval "${MATRIX_EVAL}"

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.0.0)
1+
cmake_minimum_required(VERSION 3.11)
22

33
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
44

0 commit comments

Comments
 (0)