Volker wrote:
But i don't see the use of the CMAKE_C_COMPILER variable. Setting this seems to have no effect at all. I removed everything related to cmake (except said CMakeList.txt) from my build-tree and my source-tree. *Then* i ran a clean cmake.
(There shouldn't be any CMake generated files in your source tree, if your build tree != your source tree.)
So i figure the compiler to use can only be set via enviroment vars or by editing CMakeCache.txt after running cmake. (??)
In general, yes.
But how does this SET( CMAKE_C_COMPILER ....) work? I saw it in several examples on google searching for CMAKE_C_COMPILER.
Probably through the -C command line option to CMake. (cmake --help.) You can use that to set up the initial cache values through CMake script.
Amitha. _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake