diff --git a/ci/windows/build_common.psm1 b/ci/windows/build_common.psm1 index 1b8b534..1edea63 100644 --- a/ci/windows/build_common.psm1 +++ b/ci/windows/build_common.psm1 @@ -73,8 +73,9 @@ function configure_preset { # CMake must be invoked in the same directory as the presets file: pushd ".." - echo "cmake --preset $PRESET $CMAKE_OPTIONS --log-level VERBOSE" - cmake --preset $PRESET $CMAKE_OPTIONS --log-level VERBOSE + $cmake_command = "cmake --preset $PRESET $CMAKE_OPTIONS --log-level VERBOSE" + echo "$cmake_command" + Invoke-Expression $cmake_command $test_result = $LastExitCode If ($test_result -ne 0) {