From 95d9283800a73f4091d0de656c54fa18a2a6a78a Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 6 May 2018 13:09:17 -1000 Subject: [PATCH] Add sanitizers to executable targets --- hecl-gui/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hecl-gui/CMakeLists.txt b/hecl-gui/CMakeLists.txt index e213e7d19..e59e0f76c 100644 --- a/hecl-gui/CMakeLists.txt +++ b/hecl-gui/CMakeLists.txt @@ -49,6 +49,9 @@ add_executable(hecl-gui WIN32 MACOSX_BUNDLE DownloadManager.hpp DownloadManager.cpp ExtractZip.hpp ExtractZip.cpp ${QUAZIP_SRCS} Common.hpp Common.cpp ${PLAT_SRCS} main.cpp) +if(COMMAND add_sanitizers) + add_sanitizers(hecl-gui) +endif() set_target_properties(hecl-gui PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/platforms/mac/Info.plist")