[MacPorts] #64194: portgroup cmake 1.1: add Xcode Generator

MacPorts noreply at macports.org
Sat Dec 11 20:49:36 UTC 2021


#64194: portgroup cmake 1.1: add Xcode Generator
-------------------------+--------------------------
 Reporter:  jasonliu--   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.7.1
 Keywords:               |       Port:  pg-cmake-1.1
-------------------------+--------------------------
 At the moment, there's no way to specify {{{Xcode}}} as a Generator in the
 CMake 1.1 PortGroup. Attempting to specify

 {{{
 cmake.generator Xcode
 }}}

 results in the following error:

 {{{
 Error: Unable to open port: can't set "cmake.generator":
 The "Xcode" generator is not currently known/supported
 (cmake.generator is case-sensitive!)
 }}}

 Using the Xcode Generator causes CMake to generate an Xcode project
 ({{{.xcodeproj}}}) during the configure phase, and seems like it would be
 fairly common use case.

 For the time being, I can tell CMake to use the Xcode Generator by using
 the CMake 1.0 PortGroup, and specifying

 {{{
 configure.args-prepend "-G Xcode"
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64194>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list