Don't treat compiler warnings as errors by default

So that new warnings don't cause issues for library consumers.

Instead use CMake's CMAKE_COMPILE_WARNING_AS_ERROR option to treat them as errors in CI.
This commit is contained in:
Oliver Hamlet
2025-10-03 17:39:11 +01:00
parent 6c951c648d
commit 24e3f99d9e
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -193,6 +193,7 @@ jobs:
run: |
cmake \
-DCMAKE_BUILD_TYPE=${{ env.CMAKE_CONFIG }} \
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
-DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}" \
-DCPACK_THREADS=0 \
-DRUST_TARGET="${{ matrix.target.triple }}" \
@@ -205,6 +206,7 @@ jobs:
run: |
cmake -G "Visual Studio 17 2022" `
-A ${{ matrix.target.platform }} `
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON `
-DCPACK_PACKAGE_VERSION="${{ steps.get-libloot-version.outputs.version }}" `
-DCPACK_THREADS=0 `
-DRUST_TARGET="${{ matrix.target.triple }}" `