mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 05:26:13 +01:00
Disable treating warning as errors by default
This commit is contained in:
1 parent
a7e7ea4ccf
commit
76c1e643fa
2 files changed
+2
-2
No files matched your search
@@ -51,7 +51,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure CSFML CMake
|
- name: Configure CSFML CMake
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake -S $GITHUB_WORKSPACE/CSFML -B $GITHUB_WORKSPACE/CSFML/build -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/CSFML/install -DBUILD_SHARED_LIBS=TRUE -DCSFML_LINK_SFML_STATICALLY=FALSE -DSFML_DIR=$GITHUB_WORKSPACE/SFML/install/lib/cmake/SFML -DCMAKE_VERBOSE_MAKEFILE=ON ${{matrix.platform.flags}}
|
run: cmake -S $GITHUB_WORKSPACE/CSFML -B $GITHUB_WORKSPACE/CSFML/build -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/CSFML/install -DBUILD_SHARED_LIBS=TRUE -DCSFML_LINK_SFML_STATICALLY=FALSE -DSFML_DIR=$GITHUB_WORKSPACE/SFML/install/lib/cmake/SFML -DCMAKE_VERBOSE_MAKEFILE=ON -DWARNINGS_AS_ERRORS=TRUE ${{matrix.platform.flags}}
|
||||||
|
|
||||||
- name: Build CSFML
|
- name: Build CSFML
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# Helper function to enable compiler warnings for a specific set of files
|
# Helper function to enable compiler warnings for a specific set of files
|
||||||
function(set_file_warnings)
|
function(set_file_warnings)
|
||||||
option(WARNINGS_AS_ERRORS "Treat compiler warnings as errors" TRUE)
|
option(WARNINGS_AS_ERRORS "Treat compiler warnings as errors" FALSE)
|
||||||
|
|
||||||
set(MSVC_WARNINGS
|
set(MSVC_WARNINGS
|
||||||
/W4 # Baseline reasonable warnings
|
/W4 # Baseline reasonable warnings
|
||||||
|
|||||||
Reference in new issue
Block a user