From f057e19206f030428c12229fafb1b22c3390e421 Mon Sep 17 00:00:00 2001 From: Michael Schellenberger Costa Date: Fri, 30 Dec 2022 09:28:45 +0100 Subject: [PATCH] Silence deprecation and attribute warnings when building libcu++ --- libcxx/src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt index 323d38c752..190a11eda5 100644 --- a/libcxx/src/CMakeLists.txt +++ b/libcxx/src/CMakeLists.txt @@ -142,6 +142,8 @@ endif() function(cxx_link_system_libraries target) target_add_link_flags_if_supported(${target} PRIVATE "-nodefaultlibs") target_add_compile_flags_if_supported(${target} PRIVATE "/Zl") + target_add_compile_flags_if_supported(${target} PRIVATE "-Wno-deprecated-declarations") + target_add_compile_flags_if_supported(${target} PRIVATE "-Wno-attributes") if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "PGI") target_add_link_flags_if_supported(${target} PRIVATE "/nodefaultlib") endif()