Use SFML 2.6's set of compiler warnings

Some minor tweaks were made to remove Android-specific workarounds
that CSFML doesn't need and removing a few warnings that are not
feasible to fix at the moment.
This commit is contained in:
Chris Thrasher committed 2023-07-08 11:01:11 -06:00
1 parent e8776bc80d
commit d536b3d2cc
13 files changed
+132 -20

No files matched your search

+4
View File
@@ -1,4 +1,5 @@
include(CMakeParseArguments)
include(${PROJECT_SOURCE_DIR}/cmake/CompilerWarnings.cmake)
# add a new target which is a CSFML library
# ex: csfml_add_library(csfml-graphics
@@ -15,6 +16,9 @@ macro(csfml_add_library target)
# add the CSFML header path
target_include_directories(${target} PUBLIC ${PROJECT_SOURCE_DIR}/include)
# add warnings
set_file_warnings(${THIS_SOURCES})
# define the export symbol of the module
string(REPLACE "-" "_" NAME_UPPER "${target}")
string(TOUPPER "${NAME_UPPER}" NAME_UPPER)