Turn off extensions in set_default_target_options
This commit is contained in:
parent
d6d5951b95
commit
f95de25842
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user