if(${SANITIZER_MODE} STREQUAL "ASAN")
        add_compile_options(-fno-omit-frame-pointer -fsanitize=address -g)
        add_link_options(-fno-omit-frame-pointer -fsanitize=address)
endif()
if(${SANITIZER_MODE} STREQUAL "UBSAN")
        add_compile_options(-fno-omit-frame-pointer -fsanitize=undefined -g)
        add_link_options(-fno-omit-frame-pointer -fsanitize=undefined)
endif()
if(${SANITIZER_MODE} STREQUAL "TSAN")
        add_compile_options(-fno-omit-frame-pointer -fsanitize=thread -O1 -g)
        add_link_options(-fno-omit-frame-pointer -fsanitize=thread)
endif()
