src/CMakeLists.txt
author František Kučera <franta-hg@frantovo.cz>
Mon, 24 Sep 2018 13:47:02 +0200
branchv_0
changeset 1 0e791c64f38b
parent 0 ba16fce7ef20
child 2 7ba3ae8cf1fc
permissions -rw-r--r--
add ASan AddressSanitizer to detect memory leaks

# Add ASan AddressSanitizer
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
set(CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
# From ASan wiki: "To get nicer stack traces in error messages add -fno-omit-frame-pointer."

add_executable (relpipe-out-chart relpipe-out-chart.cpp)