Turn off extensions in set_default_target_options

This commit is contained in:
Camden Dixie O'Brien 2024-11-02 23:46:39 +00:00
parent d6d5951b95
commit f95de25842

View File

@ -8,6 +8,7 @@ enable_testing()
function(set_default_target_options target) function(set_default_target_options target)
set_property(TARGET ${target} PROPERTY C_STANDARD 11) set_property(TARGET ${target} PROPERTY C_STANDARD 11)
set_property(TARGET ${target} PROPERTY C_EXTENSIONS OFF)
target_compile_options(${target} PRIVATE -Wall -Wextra -pedantic) target_compile_options(${target} PRIVATE -Wall -Wextra -pedantic)
if(${SANITIZERS}) if(${SANITIZERS})
target_compile_options(${target} PRIVATE -fsanitize=address,undefined) target_compile_options(${target} PRIVATE -fsanitize=address,undefined)