From 5cbf287fe2f31f728934327ecb54e0144379ef05 Mon Sep 17 00:00:00 2001 From: Erik Boasson Date: Fri, 8 Mar 2024 15:30:17 +0100 Subject: [PATCH] Windows + choco OpenSSL 3.2.1 + CMake woes Installing openssl 3.2.1 with Chocolatey if openssl 1.x is already present gives interesting results (it uses the include files from 3.x but the libraries of 1.x). You'd think that uninstalling openssl 1.x, then installing openssl 3.2.1 would solve all problems, but then CMake says it can't find OpenSSL at all, and indeed it can't find the libraries in the locations where it is looking for them. Let's see what happens when we don't touch the system image and use whatever openssl version is present. Signed-off-by: Erik Boasson --- .azure/templates/build-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure/templates/build-test.yml b/.azure/templates/build-test.yml index d82eeb8f75..0d767796ff 100644 --- a/.azure/templates/build-test.yml +++ b/.azure/templates/build-test.yml @@ -62,7 +62,7 @@ steps: } else { Write-Host "###vso[task.setvariable variable=build_tool_options;]-j 4" } - choco install -y openssl + #choco install -y openssl condition: eq(variables['Agent.OS'], 'Windows_NT') name: setup_windows - task: Cache@2 @@ -143,7 +143,7 @@ steps: -DBUILD_IDLC_XTESTS=${IDLC_XTESTS:-on} \ -DBUILD_EXAMPLES=on \ -DWERROR=on \ - ${GENERATOR:+-G}${GENERATOR} -A "${PLATFORM}" -T "${TOOLSET}" .. + ${GENERATOR:+-G} "${GENERATOR}" -A "${PLATFORM}" -T "${TOOLSET}" .. ${SCAN_BUILD} cmake --build . --config ${BUILD_TYPE} --target install -- ${BUILD_TOOL_OPTIONS} cmake --build . --config ${BUILD_TYPE} --target package -- ${BUILD_TOOL_OPTIONS} name: script