22 lines
537 B
CMake
22 lines
537 B
CMake
target_compile_options(zm-warning-interface
|
|
INTERFACE
|
|
-Wall)
|
|
|
|
if(ASAN)
|
|
target_compile_options(zm-compile-option-interface
|
|
INTERFACE
|
|
-fno-omit-frame-pointer
|
|
-fsanitize=address
|
|
-fsanitize-recover=address
|
|
-fsanitize-address-use-after-scope)
|
|
|
|
target_link_options(zm-compile-option-interface
|
|
INTERFACE
|
|
-fno-omit-frame-pointer
|
|
-fsanitize=address
|
|
-fsanitize-recover=address
|
|
-fsanitize-address-use-after-scope)
|
|
|
|
message(STATUS "Clang: Enabled AddressSanitizer (ASan)")
|
|
endif()
|