[CMake] Regarding CMAKE and OSX Mavericks

Sean McBride sean at rogue-research.com
Fri Mar 14 11:03:10 EDT 2014


On Sat, 15 Mar 2014 00:57:16 +1100, Theodore St. Shenouda said:

>CMAKE Version : 3.0.0 rc 1
>
>My current system version.
>OS:    OSX 10.9.2
>XCODE: 5.0.2
>
>
>The C compiler identification is unknown
>CMake Error at CMakeLists.txt:1 (project):
>No CMAKE_C_COMPILER could be found.
>
>
>Configuring incomplete, errors occurred!
>See also "/Users/theodorestshenouda/Desktop/glfw-3.0.4/Build/CMakeFiles/
>CMakeOutput.log".
>See also "/Users/theodorestshenouda/Desktop/glfw-3.0.4/Build/CMakeFiles/
>CMakeError.log".
>
>gcc version: 
>
>Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
>--with-gxx-include-dir=/usr/include/c++/4.2.1
>Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
>Target: x86_64-apple-darwin13.1.0
>Thread model: posix

Are you the one passing "--prefix=" and "--with-gxx-include-dir"?  If so, why?

What do the following output:

xcrun --find cc

xcode-select --print-path

BTW: OS 10.9 & Xcode 5 do not provide *any* version of gcc, only clang.  There's a gcc symlink for compatibility (as surely many tools/scripts assume its existence), but it's not really gcc at all.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the CMake mailing list