mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-13 10:52:57 +01:00
Merge pull request #496 from albestro/update_cmake_ci
Update CMake in CI
This commit is contained in:
commit
1ae57c983b
17
.travis.yml
17
.travis.yml
@ -106,6 +106,23 @@ matrix:
|
||||
# packages:
|
||||
# - clang-5.0
|
||||
|
||||
before_script:
|
||||
- mkdir -p /tmp/cmake.root
|
||||
- |
|
||||
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_NAME = 'linux' ]; then
|
||||
CMAKE_BIN_DIR="bin"
|
||||
else
|
||||
CMAKE_BIN_DIR="CMake.app/Contents/bin"
|
||||
fi
|
||||
- export PATH=/tmp/cmake.root/$CMAKE_BIN_DIR:$PATH
|
||||
|
||||
# Build and check this project
|
||||
script:
|
||||
- eval "${MATRIX_EVAL}"
|
||||
|
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.0.0)
|
||||
cmake_minimum_required(VERSION 3.11)
|
||||
|
||||
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user