From b12824b80722f8b35fcd21bbd8d65e94f94c54d9 Mon Sep 17 00:00:00 2001 From: leha-bot Date: Sun, 11 Dec 2022 15:31:31 +0300 Subject: [PATCH] fix(ci/windows): Quote the github.workpace in all absolute paths if need The build directory may be the relative, but MODULE/PREFIX paths should be absolute. The quoting is needed as Windows PWSH seems tries to handle incorrectly paths and CMake got crazy on its internal compiler checks. --- .github/workflows/cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index c6a6da3..e198247 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -45,7 +45,7 @@ jobs: # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type # Also set PREFIX and MODULE paths for find_package() via CMAKE_MODULE_PATH and CMAKE_PREFIX_PATH variables. # See https://cmake.org/cmake/help/latest/command/find_package.html?highlight=find_package for search modes. - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH=${{github.workspace}}/build -DCMAKE_MODULE_PATH=${{github.workspace}}/build + run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH="${{github.workspace}}/build" -DCMAKE_MODULE_PATH="${{github.workspace}}/build" - name: Build # Build your program with the given configuration