File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,11 @@ set(PROJECT_TRANSLATION_TEST_LANGUAGE "en" CACHE STRING "Country code of languag
2323set (PROJECT_QT_VERSION 6 CACHE STRING "Qt version to use [Default: 6]" )
2424option (PROJECT_TRANSLATIONS_UPDATE "Update source translations [default: OFF]" OFF )
2525
26- #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fsanitize=undefined")
27- #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fsanitize=undefined")
26+ if (ASAN)
27+ MESSAGE (NOTICE "Use Address Sanitizer" )
28+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fsanitize=undefined" )
29+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fsanitize=undefined" )
30+ endif ()
2831
2932find_package (QT NAMES Qt${PROJECT_QT_VERSION} )
3033find_package (Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets LinguistTools)
You can’t perform that action at this time.
0 commit comments