Set compiler warnings on a per-target basis

This commit is contained in:
Chris Thrasher committed 2024-03-29 09:58:28 -05:00
1 parent 65165dbc55
commit 5e3d87858f
3 files changed
+6 -10

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ macro(csfml_add_library target)
target_include_directories(${target} PUBLIC ${PROJECT_SOURCE_DIR}/include)
# add warnings
set_file_warnings(${THIS_SOURCES})
set_target_warnings(${target})
# require C11 and C++17
target_compile_features(${target} PUBLIC c_std_11 cxx_std_17)