Compare commits

..

2 Commits

Author SHA1 Message Date
LittleSheep
a3aa694076
🔀 Merge pull request #20 from Texas0295/master
🐛 change -Werror to -Wextra
2025-04-11 00:37:42 +08:00
Texas0295
e98ee562ef 🐛 change -Werror to -Wextra 2025-04-10 20:12:18 +08:00

View File

@ -41,7 +41,7 @@ endif()
# of modifying this function.
function(APPLY_STANDARD_SETTINGS TARGET)
target_compile_features(${TARGET} PUBLIC cxx_std_14)
target_compile_options(${TARGET} PRIVATE -Wall -Werror)
target_compile_options(${TARGET} PRIVATE -Wall -Wextra)
target_compile_options(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O3>")
target_compile_definitions(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:NDEBUG>")
endfunction()