From 7275bf56bf1da93709b24dd9867b8fdafd52eaf5 Mon Sep 17 00:00:00 2001 From: Ivana Rusic Date: Mon, 5 Feb 2024 15:07:10 +0100 Subject: [PATCH] Upstreming warnings suppression from rocMLIR to LLVM project --- llvm/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index cd23cf8a2fcd0a..056566defd877a 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -16,6 +16,9 @@ if(NOT LLVM_NO_INSTALL_NAME_DIR_FOR_BUILD_TREE) set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON) endif() +if(MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING" CACHE INTERNAL "") +endif() if(NOT DEFINED LLVM_VERSION_MAJOR) set(LLVM_VERSION_MAJOR 19) endif()