mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-29 05:56:13 +01:00
Require C++17
This commit is contained in:
1 parent
f9cf6b935a
commit
942f23ca0b
1 file changed
+3
@@ -19,6 +19,9 @@ macro(csfml_add_library target)
|
|||||||
# add warnings
|
# add warnings
|
||||||
set_file_warnings(${THIS_SOURCES})
|
set_file_warnings(${THIS_SOURCES})
|
||||||
|
|
||||||
|
# require C++17
|
||||||
|
target_compile_features(${target} PUBLIC cxx_std_17)
|
||||||
|
|
||||||
# define the export symbol of the module
|
# define the export symbol of the module
|
||||||
string(REPLACE "-" "_" NAME_UPPER "${target}")
|
string(REPLACE "-" "_" NAME_UPPER "${target}")
|
||||||
string(TOUPPER "${NAME_UPPER}" NAME_UPPER)
|
string(TOUPPER "${NAME_UPPER}" NAME_UPPER)
|
||||||
|
|||||||
Reference in new issue
Block a user