fsanitize=address requires libasan, that’s a useless dependency. Also we cannot use both this feature and valgrind at the same time. So, I’ll just specify this flag myself when I need it, this doesn’t need to be there by default
1 files changed, 1 insertions(+), 1 deletions(-) M CMakeLists.txt
M CMakeLists.txt => CMakeLists.txt +1 -1
@@ 6,7 6,7 @@ set(${PROJECT_NAME}_VERSION_MAJOR 0) set(${PROJECT_NAME}_VERSION_MINOR 1) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pedantic -Wall -Wextra") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og -fsanitize=address") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og") # ## Look for external libraries