about summary refs log tree commit diff homepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 164ce1a1..b40b9414 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -617,12 +617,15 @@ endif()
 message(STATUS "${CMAKE_CXX_FLAGS}")
 set(IS_ASAN_BUILD 0)
 set(IS_UBSAN_BUILD 0)
+set(IS_MSAN_BUILD 0)
 string(REPLACE " " ";" _flags ${CMAKE_CXX_FLAGS})
 foreach(arg IN ITEMS ${_flags})
   if (${arg} STREQUAL -fsanitize=address)
     set(IS_ASAN_BUILD 1)
   elseif (${arg} STREQUAL -fsanitize=undefined)
     set(IS_UBSAN_BUILD 1)
+  elseif (${arg} STREQUAL -fsanitize=memory)
+    set(IS_MSAN_BUILD 1)
   endif()
 endforeach()
 unset(_flags)