target_compile_options(zm-warning-interface INTERFACE -Wall $<$,5.0>:-Wconditionally-supported> -Wextra -Wformat-security -Wno-cast-function-type $<$,11>:-Wno-clobbered> -Wno-unused-parameter -Woverloaded-virtual) 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 "GCC: Enabled AddressSanitizer (ASan)") endif() if(TSAN) target_compile_options(zm-compile-option-interface INTERFACE -fsanitize=thread) target_link_options(zm-compile-option-interface INTERFACE -fsanitize=thread) message(STATUS "GCC: Enabled ThreadSanitizer (TSan)") endif()