[CMake] CMAKE 2.8.9, OS X 10.8 and OpenGL

Jason T. Slack-Moehrle slackmoehrle at gmail.com
Wed Aug 15 17:59:51 EDT 2012


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!

Thanks for the explanation.

-Jason


More information about the CMake mailing list