mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 05:26:13 +01:00
Use ON and OFF for CMake booleans
This commit is contained in:
1 parent
33fca5fd5d
commit
574c6afe05
4 files changed
+31
-31
No files matched your search
@@ -4,7 +4,7 @@
|
||||
|
||||
# Helper function to enable compiler warnings for a specific target
|
||||
function(set_target_warnings target)
|
||||
option(CSFML_WARNINGS_AS_ERRORS "Treat compiler warnings as errors" FALSE)
|
||||
option(CSFML_WARNINGS_AS_ERRORS "Treat compiler warnings as errors" OFF)
|
||||
|
||||
set(MSVC_WARNINGS
|
||||
/W4 # Baseline reasonable warnings
|
||||
@@ -55,7 +55,7 @@ function(set_target_warnings target)
|
||||
|
||||
# Disable warnings as errors when using Clang on Windows to work around deprecation warnings in Windows APIs
|
||||
if(SFML_OS_WINDOWS AND (SFML_COMPILER_CLANG OR SFML_COMPILER_CLANG_CL))
|
||||
set(CSFML_WARNINGS_AS_ERRORS FALSE)
|
||||
set(CSFML_WARNINGS_AS_ERRORS OFF)
|
||||
endif()
|
||||
|
||||
if(CSFML_WARNINGS_AS_ERRORS)
|
||||
|
||||
Reference in new issue
Block a user