Turn off extensions in set_default_target_options
This commit is contained in:
1 parent
d6d5951b95
commit
f95de25842
1 file changed
+1
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user