From f3f6f4d7c215401c06a002db45677632aba5c215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Fri, 22 Nov 2024 07:42:15 +0100 Subject: [PATCH] compile tests with sanitizer falgs --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29c8a4da4a0..bc17e6c01ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2063,6 +2063,8 @@ if (QML) endif() find_package(GTest CONFIG REQUIRED) set_target_properties(mixxx-test PROPERTIES AUTOMOC ON) +target_compile_options(mixxx-test -fsanitize=thread -g) +target_link_options(mixxx-test PUBLIC -fsanitize=thread) target_link_libraries(mixxx-test PRIVATE mixxx-lib mixxx-gitinfostore GTest::gtest GTest::gmock) find_package(benchmark)