Opened 3 years ago

Last modified 7 months ago

#64194 new enhancement

cmake-1.1 portgroup: 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

Description

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 (3)

comment:2 Changed 2 years ago by mascguy (Christopher Nielsen)

Keywords: portgroup added

Add keyword portgroup, to pg-related tickets

comment:3 Changed 7 months ago by kencu (Ken)

Summary: portgroup cmake 1.1: add Xcode Generatorcmake-1.1 portgroup: add Xcode Generator
Note: See TracTickets for help on using tickets.