Switched to C++17 to ensure better compatibility with modern libraries and potential future dependencies

This commit is contained in:
veto9292
2025-12-10 17:43:15 +03:30
parent 79e467af32
commit 7ceca45ca9
+1 -1
View File
@@ -40,7 +40,7 @@ endif()
# default. In most cases, you should add new options to specific targets instead
# of modifying this function.
function(APPLY_STANDARD_SETTINGS TARGET)
target_compile_features(${TARGET} PUBLIC cxx_std_14)
target_compile_features(${TARGET} PUBLIC cxx_std_17)
target_compile_options(${TARGET} PRIVATE -Wall -Werror)
target_compile_options(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O3>")
target_compile_definitions(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:NDEBUG>")