[cmake-developers] [CMake 0013408]: CMake should support default installation of Xcode.app only, without 'command line tools' extras

Mantis Bug Tracker mantis at public.kitware.com
Tue Jul 17 13:32:22 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13408 
====================================================================== 
Reported By:                Sean McBride
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13408
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-07-17 13:32 EDT
Last Modified:              2012-07-17 13:32 EDT
====================================================================== 
Summary:                    CMake should support default installation of
Xcode.app only, without 'command line tools' extras
Description: 
Nowadays, Xcode is distributed as a standalone .app instead of an installer that
copies files all over the place.  As a consequence of this, nothing gets
installed at /usr/bin/make, /usr/bin/cc, etc.  Those programs are still
included, just not at those locations; instead, they are within the Xcode.app
bundle somewhere.

Optionally, one can install a separate 'command line tools' package that places
things at those venerable locations.  Without installing that, one can still
find and use 'make' and other tools using 'xcrun' (see 'man xcrun').  ex:

$ xcrun make --version
GNU Make 3.81

$ xcrun -find make
/Applications/Xcode.app/Contents/Developer/usr/bin/make

Without the 'command line tools' installed, CMake seems unable to get far:

Error(s) when configuring the project
CMake Error: CMake was unable to find a build program corresponding to "Unix
Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a
different build tool.

It would be nice if CMake could support having only Xcode.app and not the
'command line tools' extras.

Suggestions:
 - invoke 'xcrun -find' to find the paths to the tools it needs.
 - invoke 'xcrun <tool name>' to invoke the tool.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-07-17 13:32 Sean McBride   New Issue                                    
======================================================================




More information about the cmake-developers mailing list