Require C11

This required silencing C5105 which emits warnings about system
headers which we can't change.

https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c5105?view=msvc-170
This commit is contained in:
Chris Thrasher authored and Lukas Dürrenberger committed 2024-02-19 23:30:30 +01:00
1 parent a51c22a7a3
commit c7ac60f312
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ function(set_file_warnings)
/wd4068 # disable warnings about unknown pragmas (e.g. #pragma GCC)
/wd4505 # disable warnings about unused functions that might be platform-specific
/wd4800 # disable warnings regarding implicit conversions to bool
/wd5105 # disable warning about expansion of 'defined' keyword
)
set(CLANG_AND_GCC_WARNINGS
+2 -2
View File
@@ -19,8 +19,8 @@ macro(csfml_add_library target)
# add warnings
set_file_warnings(${THIS_SOURCES})
# require C99 and C++17
target_compile_features(${target} PUBLIC c_std_99 cxx_std_17)
# require C11 and C++17
target_compile_features(${target} PUBLIC c_std_11 cxx_std_17)
# define the export symbol of the module
string(REPLACE "-" "_" NAME_UPPER "${target}")