mirror of
https://github.com/triqs/dft_tools
synced 2024-11-18 12:03:50 +01:00
[cmake] Fix sanitizer target names
This commit is contained in:
parent
54d4be9e08
commit
72029ee2ba
@ -68,7 +68,7 @@ endif()
|
||||
|
||||
option(ASAN OFF "Compile library and executables with LLVM Address Sanitizer")
|
||||
if(ASAN)
|
||||
if(NOT TARGET ASAN)
|
||||
if(NOT TARGET asan)
|
||||
find_package(sanitizer REQUIRED COMPONENTS asan)
|
||||
endif()
|
||||
target_link_libraries(${PROJECT_NAME}_c PUBLIC $<BUILD_INTERFACE:asan>)
|
||||
@ -76,7 +76,7 @@ endif()
|
||||
|
||||
option(UBSAN OFF "Compile library and executables with LLVM Undefined Behavior Sanitizer")
|
||||
if(UBSAN)
|
||||
if(NOT TARGET UBSAN)
|
||||
if(NOT TARGET ubsan)
|
||||
find_package(sanitizer REQUIRED COMPONENTS ubsan)
|
||||
endif()
|
||||
target_link_libraries(${PROJECT_NAME}_c PUBLIC $<BUILD_INTERFACE:ubsan>)
|
||||
@ -84,7 +84,7 @@ endif()
|
||||
|
||||
option(MSAN OFF "Compile library and executables with LLVM Memory Sanitizer")
|
||||
if(MSAN)
|
||||
if(NOT TARGET MSAN)
|
||||
if(NOT TARGET msan)
|
||||
find_package(sanitizer REQUIRED COMPONENTS msan)
|
||||
endif()
|
||||
target_link_libraries(${PROJECT_NAME}_c PUBLIC $<BUILD_INTERFACE:msan>)
|
||||
@ -92,7 +92,7 @@ endif()
|
||||
|
||||
option(TSAN OFF "Compile library and executables with LLVM Thread Sanitizer")
|
||||
if(TSAN)
|
||||
if(NOT TARGET TSAN)
|
||||
if(NOT TARGET tsan)
|
||||
find_package(sanitizer REQUIRED COMPONENTS tsan)
|
||||
endif()
|
||||
target_link_libraries(${PROJECT_NAME}_c PUBLIC $<BUILD_INTERFACE:tsan>)
|
||||
|
Loading…
Reference in New Issue
Block a user