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
-- 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
