Skip to content

Commit

Permalink
build: more output and minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperPaul123 committed Apr 11, 2024
1 parent a4203aa commit f47aa92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<$<COMPILE_LANG_AND_ID:CXX,GNU,Clang>:-fsanitize=thread -g>
)
target_link_options(
${PROJECT_NAME} PRIVATE $<$<COMPILE_LANG_AND_ID:CXX,GNU,Clang>:-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 $<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/fsanitize=address>
)
Expand Down

0 comments on commit f47aa92

Please sign in to comment.