[CMake] Xcode without 'command line tools' & xcrun & CMake

David Cole david.cole at kitware.com
Thu Jul 12 17:13:17 EDT 2012


On Thu, Jul 12, 2012 at 4:55 PM, Sean McBride <sean at rogue-research.com>wrote:

> Hi all,
>
> 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.
>
> 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 would invoke 'xcrun -find' to find the paths to
> the tools it needs.  Or can it already, and I'm missing something?
>
> Thanks,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


Good idea, but no, this is not implemented yet. We did not know about
"xcrun" yet. Thanks for the info.

For now, install the command line tools.

And, of course, patches are welcome. :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120712/1d020f9b/attachment.htm>


More information about the CMake mailing list