diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5b681d042..b1099fd1d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,7 +5,7 @@ if("${CMAKE_COMPILER_IS_GNUCC}" AND "${CMAKE_SYSTEM_NAME}" MATCHES "Windows" AND target_link_options(SRB2SDL2 PRIVATE "-static") endif() -set_property(TARGET SRB2SDL2 PROPERTY C_STANDARD 11) +target_compile_features(SRB2SDL2 PRIVATE c_std_11 cxx_std_17) # Core sources target_sourcefile(c)