diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bd84ceef..92f0bd625 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,10 +96,12 @@ include_directories(SYSTEM add_compile_definitions( VULKAN_HPP_NO_TO_STRING IMGUI_DISABLE_DEFAULT_FONT - IMGUI_USE_STB_SPRINTF USE_CPP17 # Tabulate ) +# Prevent ASan error from ImGUI +add_compile_definitions($<$>:IMGUI_USE_STB_SPRINTF>) + # Static library define add_compile_definitions(_LIB)