← Commit list

c9e50e9e39

Viktor Szakats
Viktor Szakats
2025-11-28
SUCCESS Duration: 150s

Subject

appveyor: add support for using custom CMake versions

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

appveyor.sh+17 -0
@@ -42,6 +42,23 @@ elif [ "${APPVEYOR_BUILD_WORKER_IMAGE}" = 'Visual Studio 2019' ]; then
fi
if [ "${BUILD_SYSTEM}" = 'CMake' ]; then
+ # Install custom cmake version
+ if [ -n "${CMAKE_VERSION:-}" ]; then
+ cmake_ver=$(printf '%02d%02d' \
+ "$(echo "$CMAKE_VERSION" | cut -f1 -d.)" \
+ "$(echo "$CMAKE_VERSION" | cut -f2 -d.)")
+ if [ "${cmake_ver}" -ge '0320' ]; then
+ fn="cmake-${CMAKE_VERSION}-windows-x86_64"
+ else
+ fn="cmake-${CMAKE_VERSION}-win64-x64"
+ fi
+ curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
+ --location "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${fn}.zip" --output bin.zip
+ 7z x -y bin.zip >/dev/null
+ rm -f bin.zip
+ PATH="$PWD/${fn}/bin:$PATH"
+ fi
+
# Set env CHKPREFILL to the value '_chkprefill' to compare feature detection
# results with and without the pre-fill feature. They have to match.
for _chkprefill in '' ${CHKPREFILL:-}; do
appveyor.yml+3 -0
@@ -79,6 +79,7 @@ environment:
SHARED: 'ON'
- job_name: 'CM VS2013, Debug, x64, Schannel, Shared, Build-only'
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
+ CMAKE_VERSION: '3.18.4'
PRJ_GEN: 'Visual Studio 12 2013'
TARGET: '-A x64'
PRJ_CFG: Debug
@@ -87,6 +88,7 @@ environment:
TFLAGS: 'skipall'
- job_name: 'CM VS2015, Debug, x64, Schannel, Static, Build-only'
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015'
+ CMAKE_VERSION: '3.19.8'
PRJ_GEN: 'Visual Studio 14 2015'
TARGET: '-A x64'
PRJ_CFG: Debug
@@ -94,6 +96,7 @@ environment:
TFLAGS: 'skipall'
- job_name: 'CM VS2017, Debug, x64, Schannel, Shared, Build-only'
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017'
+ CMAKE_VERSION: '3.20.6'
PRJ_GEN: 'Visual Studio 15 2017'
TARGET: '-A x64'
PRJ_CFG: Debug