Skip to content

Commit

Permalink
fix(ci/windows): Quote the github.workpace in all absolute paths if need
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
leha-bot committed Sep 19, 2023
1 parent 898de7b commit d39ff7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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}}/conan-deps -DCMAKE_MODULE_PATH=${{github.workspace}}/conan-deps
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH="${{github.workspace}}/conan-deps" -DCMAKE_MODULE_PATH="${{github.workspace}}/conan-deps"

- name: Build
# Build your program with the given configuration
Expand Down

0 comments on commit d39ff7e

Please sign in to comment.