From f47aa926811e14349f7cd50e1639bf87d396da9d Mon Sep 17 00:00:00 2001 From: Paul T Date: Thu, 11 Apr 2024 09:26:57 -0400 Subject: [PATCH] build: more output and minor fix --- test/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index c7bdc81..9e21faa 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -46,14 +46,15 @@ target_link_options( ) if(NOT WIN32 AND TP_THREAD_SANITIZER) - message(STATUS "Settings thread sanitizer flags.") + message(STATUS "Setting thread sanitizer flags.") target_compile_options( ${PROJECT_NAME} PRIVATE $<$:-fsanitize=thread -g> ) target_link_options( ${PROJECT_NAME} PRIVATE $<$:-fsanitize=thread> ) -elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC" AND CMAKE_BUILD_TYPE MATCHES Debug,RelWithDebInfo ) +elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC" AND "${CMAKE_BUILD_TYPE}" MATCHES ".*Deb.*" ) + message(STATUS "Setting address sanitizer flags.") target_compile_options( ${PROJECT_NAME} PRIVATE $<$:/fsanitize=address> )