From d13b6f431508ba14caa9af72fae1e9dc10fc11fc Mon Sep 17 00:00:00 2001 From: Marco Barbone Date: Mon, 29 Jul 2024 18:17:37 -0400 Subject: [PATCH] windows clang openmp --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d857e2a78..c7f4a76a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,8 +75,7 @@ set(FINUFFT_CXX_FLAGS_DEBUG /Zi -Wall -Wno-sign-compare - -Wno-unknown-pragmas - -Wno-deprecated-declarations) + -Wno-unknown-pragmas) filter_supported_compiler_flags(FINUFFT_CXX_FLAGS_DEBUG FINUFFT_CXX_FLAGS_DEBUG) message(STATUS "FINUFFT Debug flags: ${FINUFFT_CXX_FLAGS_DEBUG}") list(APPEND FINUFFT_CXX_FLAGS_RELWITHDEBINFO ${FINUFFT_CXX_FLAGS_RELEASE} @@ -168,7 +167,7 @@ endif() # Utility function to enable ASAN on debug builds function(enable_asan target) target_compile_options(${target} PRIVATE ${FINUFFT_SANITIZER_FLAGS}) - if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")) target_link_options(${target} PRIVATE ${FINUFFT_SANITIZER_FLAGS}) endif() endfunction()