remove C++ std limitation for linux and android

This commit is contained in:
ekibun
2020-08-26 23:38:16 +08:00
parent e0000ac2d6
commit ba35352b2a
22 changed files with 35 additions and 110 deletions

View File

@@ -18,7 +18,7 @@ endif()
# Compilation settings that should be applied to most targets.
function(APPLY_STANDARD_SETTINGS TARGET)
target_compile_features(${TARGET} PUBLIC cxx_std_17)
target_compile_features(${TARGET} PUBLIC cxx_std_14)
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>")