diff --git a/CMakeLists.txt b/CMakeLists.txt index 842bbff4ba6..a192aacfa3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -883,7 +883,7 @@ if(NOT CMAKE_BUILD_TYPE MATCHES "Release") if(APPLE AND COMPILER_ASAN_LIBRARY) string(REPLACE " " ";" _list_COMPILER_ASAN_CFLAGS ${COMPILER_ASAN_CFLAGS}) - set(_is_CONFIG_DEBUG "$, $>") + set(_is_CONFIG_DEBUG "$,$>") add_compile_options("$<${_is_CONFIG_DEBUG}:${_list_COMPILER_ASAN_CFLAGS}>") add_link_options("$<${_is_CONFIG_DEBUG}:-fno-omit-frame-pointer;-fsanitize=address>") unset(_list_COMPILER_ASAN_CFLAGS)