Skip to content
Snippets Groups Projects
Commit 6241d72b authored by Martin Beseda's avatar Martin Beseda
Browse files

WIP: Trying to solve memory error - added Address sanitizer into CMakeLists.txt

parent e85612e5
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,9 @@ endif()
#--------------------------------#
set(CMAKE_CXX_STANDARD 17)
add_compile_options(-fsanitize=address)
add_link_options(-fsanitize=address)
if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -xHost" )
elseif( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC" )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment