Add sanitizers for cmake (#2608)

These can be enabled using the `SANITIZE_{ADDRESS,MEMORY,THREAD,UNDEFINED}` cmake flags
This commit is contained in:
pajlada
2021-04-10 13:26:20 +02:00
committed by GitHub
parent 1a1cea9542
commit 208d017cc3
5 changed files with 9 additions and 0 deletions
+3
View File
@@ -4,6 +4,7 @@ include(FeatureSummary)
list(APPEND CMAKE_MODULE_PATH
"${CMAKE_SOURCE_DIR}/cmake"
"${CMAKE_SOURCE_DIR}/cmake/sanitizers-cmake/cmake"
)
project(chatterino VERSION 2.2.3)
@@ -44,6 +45,8 @@ if (WIN32)
find_package(WinToast REQUIRED)
endif ()
find_package(Sanitizers)
# Find boost on the system
find_package(Boost REQUIRED)