Polytonic / Glitter

Dead Simple OpenGL
http://polytonic.github.io/Glitter/
2.48k stars 418 forks source link

No CMAKE_C_COMPILER could be found. #14

Closed robstolarz closed 9 years ago

robstolarz commented 9 years ago

Do I need to set this beforehand? I would assume it just looks for cc and cxx, which are present on my system...

Robs-MacBook-Pro:Build rob$ cmake -G "Xcode" ..
-- The C compiler identification is AppleClang 6.1.0.6020053
-- The CXX compiler identification is AppleClang 6.1.0.6020053
CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_C_COMPILER could be found.

CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_CXX_COMPILER could be found.

-- Configuring incomplete, errors occurred!
See also "/Volumes/Macintosh HD/rob/dev/Glitter/Build/CMakeFiles/CMakeOutput.log".
Polytonic commented 9 years ago

This, I have never seen before. What versions of CMake and OSX are you running?

robstolarz commented 9 years ago

Mac OS 10.10.5 (14F27), cmake version 3.3.1

On Sep 21, 2015, at 12:49 PM, Kevin Fung notifications@github.com wrote:

This, I have never seen before. What versions of CMake and OSX are you running?

— Reply to this email directly or view it on GitHub.

Polytonic commented 9 years ago

As a temporary work around you can just set CXX and CC manually. That should work. I can investigate your problem more thoroughly after work.

robstolarz commented 9 years ago

I figured it out.

You can't have spaces in the path to your compiler, or CMake dies.

Someone should really fix that.

Thanks!

Polytonic commented 9 years ago

Someone should really fix that.

This sounds like a bug with CMake. Or at least, I don't think there's anything I can do to address or fix this. Sorry!