Undefined sanitizer in cmake
@@ -5,8 +5,7 @@ find_package (Threads REQUIRED)
set(CMAKE_C_STANDARD 11)
-
-set(CMAKE_C_FLAGS "-std=c99 -Wall -Werror -O2 -g ${CC_WARNING_FLAGS} ${CMAKE_C_FLAGS}")
+set(CMAKE_C_FLAGS "-std=c99 -Wall -Werror -fsanitize=undefined -O2 -g ${CC_WARNING_FLAGS} ${CMAKE_C_FLAGS}")
if(DISABLE_DEBUG_PRINTF)
set(CMAKE_C_FLAGS "-DDISABLE_DEBUG_PRINTF ${CMAKE_C_FLAGS}")
