From 54d4be9e08f1ff6890dddf673b43409ef096f363 Mon Sep 17 00:00:00 2001 From: Thomas Hahn Date: Mon, 21 Aug 2023 17:31:02 -0400 Subject: [PATCH 1/2] [cmake] Add compiler warnings for IntelLLVM --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d1a88fb..38b0e81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,12 +111,12 @@ target_compile_options(${PROJECT_NAME}_warnings $<$:-Wno-comma-subscript> $<$:-Wshadow=local> $<$:-Wno-attributes> - $<$:-Wno-deprecated-comma-subscript> - $<$:-Wno-unknown-warning-option> - $<$:-Wshadow> - $<$:-Wno-gcc-compat> - $<$:-Wno-c++20-extensions> - $<$:-Wno-c++20-compat> + $<$:-Wno-deprecated-comma-subscript> + $<$:-Wno-unknown-warning-option> + $<$:-Wshadow> + $<$:-Wno-gcc-compat> + $<$:-Wno-c++20-extensions> + $<$:-Wno-c++20-compat> $<$:-Wno-deprecated-comma-subscript> $<$:-Wno-unknown-warning-option> $<$:-Wshadow> From 72029ee2ba5a62d76bc9b9e69187a118f465199e Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Mon, 21 Aug 2023 17:56:30 -0400 Subject: [PATCH 2/2] [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 $)