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()