summaryrefslogtreecommitdiff
path: root/next
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-11-19 00:17:59 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-11-20 13:56:48 +0200
commit656bc9c8bb2facd0ee0ac25543f50719a12d69d2 (patch)
treeb87bc02689faf417edb4f4057a4d5472bf771190 /next
parent1b58e87f154bf7d3d5f38ef32cc4b171362f73a2 (diff)
downloadqtlocation-mapboxgl-656bc9c8bb2facd0ee0ac25543f50719a12d69d2.tar.gz
[build] Run Valgrind instead of Memory Sanitizer
Memory Sanitizer requires all the dependencies, including libstdc++ to be compiled with Memory Sanitizer, otherwise we will get tons of false positives.
Diffstat (limited to 'next')
-rw-r--r--next/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/next/CMakeLists.txt b/next/CMakeLists.txt
index c9d07fd5f3..ba8b0adb63 100644
--- a/next/CMakeLists.txt
+++ b/next/CMakeLists.txt
@@ -7,7 +7,12 @@ set(MBGL_ROOT ${PROJECT_SOURCE_DIR}/..)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER Core)
-enable_testing()
+set(
+ MEMORYCHECK_COMMAND_OPTIONS
+ "--leak-check=full --gen-suppressions=all --error-exitcode=1 --suppressions=${MBGL_ROOT}/scripts/valgrind.sup"
+)
+
+include(CTest)
set(
CMAKE_CONFIGURATION_TYPES