mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 13:36:12 +01:00
Set compiler warnings on a per-target basis
This commit is contained in:
1 parent
65165dbc55
commit
5e3d87858f
3 files changed
+6
-10
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user