Skip to content

Commit 02d7300

Browse files
authored
Enable CMake deprecation warnings (#2579)
It seems -Wno-error=deprecated doesn't work, so use -DCMAKE_ERROR_DEPRECATED=OFF. Depends on #2578
1 parent 31bab2e commit 02d7300

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ jobs:
5050
- name: mkdir
5151
run: mkdir -p out
5252
- name: cmake
53-
run: cmake .. -G Ninja -DWITH_WASI=ON -DWERROR=ON -Werror=dev -Wno-deprecated
53+
run: cmake .. -G Ninja -DWERROR=ON -Werror=dev -DCMAKE_ERROR_DEPRECATED=OFF
5454
working-directory: out
5555
if: matrix.os != 'windows-latest'
5656
- name: cmake (windows)
57-
run: cmake .. -DWERROR=ON -Werror=dev
57+
run: cmake .. -DWERROR=ON -Werror=dev -DCMAKE_ERROR_DEPRECATED=OFF
5858
working-directory: out
5959
if: matrix.os == 'windows-latest'
6060
- name: build
@@ -255,7 +255,7 @@ jobs:
255255
- name: distcc symlink
256256
run: sudo ln -s /usr/bin/distcc /opt/bin/distcc_symlinks/${{matrix.arch}}-linux-gnu-gcc # only CC is needed
257257
- name: cmake
258-
run: cmake -S . -B out -G Ninja -DCMAKE_TOOLCHAIN_FILE=../scripts/TC-${{matrix.arch}}.cmake -DWITH_WASI=ON -DWERROR=OFF -Werror=dev -Wno-deprecated
258+
run: cmake -S . -B out -G Ninja -DCMAKE_TOOLCHAIN_FILE=../scripts/TC-${{matrix.arch}}.cmake -DWERROR=OFF -Werror=dev -DCMAKE_ERROR_DEPRECATED=OFF
259259
- name: build
260260
run: cmake --build out
261261
- name: check if generated files are up-to-date

0 commit comments

Comments
 (0)