From 72029ee2ba5a62d76bc9b9e69187a118f465199e Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Mon, 21 Aug 2023 17:56:30 -0400 Subject: [PATCH] [cmake] Fix sanitizer target names --- c++/app4triqs/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/c++/app4triqs/CMakeLists.txt b/c++/app4triqs/CMakeLists.txt index 308acf2..836263e 100644 --- a/c++/app4triqs/CMakeLists.txt +++ b/c++/app4triqs/CMakeLists.txt @@ -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 $) @@ -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 $) @@ -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 $) @@ -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 $)