Skip to content

Commit

Permalink
fix cmake for windows in github runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean1995 committed Apr 21, 2023
1 parent 2dff1b2 commit 0b19d02
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,17 @@ jobs:
if : ${{ matrix.compiler == 'gcc-5' }}
run: conan install . --build=missing -o with_testing=True -s:b compiler.cppstd=gnu14 -s compiler.cppstd=gnu14
- name: Call CMake
if: ${{ matrix.os != 'windows-latest' }}
run: cmake . -DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake
- name: Call CMake (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: cmake . -DCMAKE_TOOLCHAIN_FILE="build/conan_toolchain.cmake" -DCMAKE_POLICY_DEFAULT_CMP0091=NEW
- name: Build PROPOSAL
if: ${{ matrix.os != 'windows-latest' }}
run: cmake --build . -j2
- name: Build PROPOSAL (Windows)
if: ${{ matrix.os != 'windows-latest' }}
run: cmake --build . -j2 --config Release
test:
runs-on: ${{ matrix.os }}
needs: build
Expand Down

0 comments on commit 0b19d02

Please sign in to comment.