Skip to content

Commit b5b5234

Browse files
authored
CI: Fix Windows Clang (clang-cl) build (#155)
CMake 3.31 passes the -std flag to clang-cl, even when compiling C code, which causes clang-cl to abort.
1 parent 388549a commit b5b5234

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ jobs:
143143
steps:
144144
- name: Checkout
145145
uses: actions/checkout@v4
146+
- name: Downgrade CMake # force downgrade CMake as later versions try to use the C++ standard flag to compile C programs, which cause an error.
147+
run: choco install cmake --version 3.30.6 --allow-downgrade
146148
- name: Configure
147149
run: mkdir build && mkdir install && cd build && cmake -DCMAKE_INSTALL_PREFIX="../install" -T ClangCL -DNFD_BUILD_TESTS=ON ..
148150
- name: Build

0 commit comments

Comments
 (0)