[MacPorts] #53201: cmake: doesn't recognize macports-clang (No known features for CXX compiler)

MacPorts noreply at macports.org
Wed May 24 10:08:36 UTC 2017


#53201: cmake: doesn't recognize macports-clang (No known features for CXX
compiler)
---------------------+-----------------------
  Reporter:  RJVB    |      Owner:  michaelld
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  cmake   |
---------------------+-----------------------

Comment (by RJVB):

 Hmmm, evidently I forgot about this ticket.

 A patch is being tested for the Qt cmake module that triggers the issue
 and which got me acquainted with it.

 Mojca is right in her assessment of the problematic part, I'll be
 attaching a port:cmake patch that seems to have "resolved" the problem for
 me. It removes the whole taking-into-consideration of the CMP25 policy. I
 still set the policy to NEW on the cmake commandline (in my still-pending
 modified cmake 1.1 PG) and together with the patch I've been able to build
 cmake-based projects with any compiler I've thrown at them.

 Given KitWare's attitude I think that shunting the whole policy is an
 acceptable approach for MacPorts. To be really pedantic it could be
 coupled to an install variant which is made default only on specific
 platforms, but I don't see any problems making it unconditional. It's a
 MacPorts goal that one can specify the compiler to use for building a
 port, and a silly CMake distinction between stock clang and AppleClang
 shouldn't stand in the way. Not on Mac in any case, where there isn't
 supposed to be any such difference.

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


More information about the macports-tickets mailing list