Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Silence deprecation and attribute warnings when building libcu++
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jan 9, 2023
1 parent 9d71e9a commit f057e19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcxx/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f057e19

Please sign in to comment.