[MacPorts] #53201: cmake, "compile features" and macports-clang

MacPorts noreply at macports.org
Tue Jan 3 17:21:08 UTC 2017


#53201: cmake, "compile features" and macports-clang
---------------------+-----------------
  Reporter:  RJVB    |      Owner:
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  cmake   |
---------------------+-----------------

Comment (by RJVB):

 I haven't yet figured out a proper way to change the policy default in the
 C++ code, but there are a few options to set the desired behaviour
 globally:

 - remove the check-and-return from Clang-C.cmake and Clang-CXX.cmake .
 Blunt, and you cannot go back to the "OLD" policy (should you ever want
 to)

 - following https://cmake.org/cmake/help/v3.0/manual/cmake-
 policies.7.html, add a command line option e.g. to configure.pre_args :
 * `-DCMAKE_MINIMUM_REQUIRED_VERSION=3.0`
 or
 * `-DCMAKE_POLICY_DEFAULT_CMP0025=NEW`

 I tested the latter in cmake-1.1.tcl and it works.

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


More information about the macports-tickets mailing list