[MacPorts] #63460: cmake-3.21.2_0 fails to configure on older Xcode clang versions

MacPorts noreply at macports.org
Sat Sep 25 16:26:15 UTC 2021


#63460: cmake-3.21.2_0 fails to configure on older Xcode clang versions
---------------------+----------------------------
  Reporter:  tehcog  |      Owner:  michaelld
      Type:  defect  |     Status:  assigned
  Priority:  High    |  Milestone:
 Component:  ports   |    Version:  2.7.1
Resolution:          |   Keywords:  lion mavericks
      Port:  cmake   |
---------------------+----------------------------

Comment (by kencu):

 This seems to work:
 {{{
 $ git diff Source/cmInstallRuntimeDependencySet.cxx
 diff --git a/Source/cmInstallRuntimeDependencySet.cxx
 b/Source/cmInstallRuntimeDependencySet.cxx
 index 0cef49a..5f826f3 100644
 --- a/Source/cmInstallRuntimeDependencySet.cxx
 +++ b/Source/cmInstallRuntimeDependencySet.cxx
 @@ -57,7 +57,7 @@ const std::set<const cmGeneratorTarget*>&
 GetTargetDependsClosure(
      targetDepends,
    const cmGeneratorTarget* tgt)
  {
 -  auto it = targetDepends.insert({ tgt, {} });
 +  auto it = targetDepends.insert({ tgt, {std::set<const
 cmGeneratorTarget*>{}} });
    auto& retval = it.first->second;
    if (it.second) {
      auto const& deps =
 tgt->GetGlobalGenerator()->GetTargetDirectDepends(tgt);
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63460#comment:20>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list