From 145d813385c8cf8c8fbd13df5e63162756ea72c5 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 26 Feb 2025 23:27:06 +0100 Subject: [PATCH] appveyor: add support for old CMake 3.12.2 --- appveyor.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/appveyor.sh b/appveyor.sh index 729d8b355d..a5113ec4bc 100644 --- a/appveyor.sh +++ b/appveyor.sh @@ -54,8 +54,15 @@ if [ "${BUILD_SYSTEM}" = 'CMake' ]; then [ -n "${TOOLSET:-}" ] && options+=" -T ${TOOLSET}" [ "${OPENSSL}" = 'ON' ] && options+=" -DOPENSSL_ROOT_DIR=${openssl_root_win}" [ -n "${CURLDEBUG:-}" ] && options+=" -DENABLE_CURLDEBUG=${CURLDEBUG}" + if [ "${APPVEYOR_BUILD_WORKER_IMAGE}" = 'Visual Studio 2013' ]; then + mkdir "_bld${_chkprefill}" + cd "_bld${_chkprefill}" + options+=' ..' + else + options+=" -B _bld${_chkprefill}" + fi # shellcheck disable=SC2086 - cmake -B "_bld${_chkprefill}" -G "${PRJ_GEN}" ${TARGET:-} \ + cmake -G "${PRJ_GEN}" ${TARGET:-} \ -DCMAKE_VS_GLOBALS=TrackFileAccess=false \ -DCMAKE_UNITY_BUILD="${UNITY}" -DCURL_TEST_BUNDLES=ON \ -DCURL_WERROR=ON \