Skip to content

Commit b6fde64

Browse files
authored
Add extra argument to fix cmake build with recent cmake versions (#22)
Motivation: We need to add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to be able to build with recent cnmake versions Modifications: Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 Result: Workflow works again
1 parent d659480 commit b6fde64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# Note the current convention is to use the -S and -B options here to specify source
3838
# and build directories, but this is only available with CMake 3.13 and higher.
3939
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
40-
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
40+
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_POLICY_VERSION_MINIMUM=3.5
4141

4242
- name: Build
4343
working-directory: ${{runner.workspace}}/build

0 commit comments

Comments
 (0)