Opened 12 months ago

Last modified 3 months ago

#64194 new enhancement

portgroup cmake 1.1: add Xcode Generator

Reported by: jasonliu-- (Jason Liu) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: portgroup Cc:
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"

Change History (2)

comment:2 Changed 3 months ago by mascguy (Christopher Nielsen)

Keywords: portgroup added

Add keyword portgroup, to pg-related tickets

Note: See TracTickets for help on using tickets.