File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,23 @@ matrix:
106
106
# packages:
107
107
# - clang-5.0
108
108
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
+
109
126
# Build and check this project
110
127
script :
111
128
- eval "${MATRIX_EVAL}"
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.0.0 )
1
+ cmake_minimum_required (VERSION 3.11 )
2
2
3
3
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
4
4
You can’t perform that action at this time.
0 commit comments