[MacPorts] #55382: cmake @3.10.0: Cannot find a C++ compiler supporting C++11 on this system

MacPorts noreply at macports.org
Sat Nov 25 10:39:17 UTC 2017


#55382: cmake @3.10.0: Cannot find a C++ compiler supporting C++11 on this system
-------------------------+-------------------------------------------------
  Reporter:  ryandesign  |      Owner:  michaelld
      Type:  defect      |     Status:  new
  Priority:  High        |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  cmake       |  mountainlion
-------------------------+-------------------------------------------------

Comment (by MarcusCalhoun-Lopez):

 I was able to get cmake to build on a 10.7 VM using libstdc++ with the
 following steps:
 1. Change {{{configure.cxx_stdlib libstdc++}}} to {{{configure.cxx_stdlib
 macports-libstdc++}}} in the [https://github.com/macports/macports-
 ports/blob/7cbbb6dd71f9a9a9d582994985d60283b31ee699/devel/cmake/Portfile#L180
 cmake Portfile] to allow C++11
 1. Create a cmake39 port that does not require C++11 and installs
 ${prefix}/bin/cmake
 1. Add the following code to the the [https://github.com/macports
 /macports-
 ports/blob/7cbbb6dd71f9a9a9d582994985d60283b31ee699/_resources/port1.0/group/cmake-1.0.tcl#L45
 cmake PG] to avoid circular dependencies
 {{{
 if {${os.major} < 13 && ([string match clang-* ${subport}] || [string
 match llvm-* ${subport}] || [string match libomp* ${subport}])} {
     depends_build-append path:bin/cmake:cmake39
 } else {
     # can use cmake or cmake-devel; default to cmake if not installed
     depends_build-append path:bin/cmake:cmake
 }
 }}}

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


More information about the macports-tickets mailing list