[CMake] CMAKE 2.8.9, OS X 10.8 and OpenGL

Alexander Neundorf a.neundorf-work at gmx.net
Thu Aug 16 15:46:22 EDT 2012


On Wednesday 15 August 2012, Jason T. Slack-Moehrle wrote:
> HI Mike,
> 
> > SET(CMAKE_C_COMPILER "clang")
> > SET(CMAKE_CXX_COMPILER "clang++")
> > 
> > Those really will have no effect. If you want to use Clang, then set the
> > CC and CXX environment variables BEFORE running cmake for the first
> > time. By the time CMake gets to those lines the C and C++ compilers are
> > already set and can not be changed.
> 
> ok, I got it. so I can just do this in a shell script so I dont have
> to remember to do it!

...and you only have to do that for the initial cmake run, after that has 
found the compiler and stored them in the cache (CMakeCache.txt).

Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120816/5f09ab2f/attachment-0001.htm>


More information about the CMake mailing list