> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of [EMAIL PROTECTED] > Sent: 22 October 2007 13:36 > To: [email protected] > Subject: Re: [CMake] Selecting compiler on Windows platform > > On Monday 22 October 2007 11:34, Josef Karthauser wrote: > ... > > However, I’d like to control this from within a CMake file, and this > > doesn’t appear possible. From what I can see, > CMakeDetermineCXXCompiler is > > loaded and executed prior to the CMakeLists.txt file, which means > that I > > cannot set the compiler internally. Is this true, > > Yes, this is true. > One reason is that one build tree must not use several compilers for > one > language, because all the configure checks are global for one build > tree and > so the results are only correct for the compiler which was used when > they > were executed.
This seems overly restrictive, a tree might contain a number of sub-trees which use different compilers. Whilst I understand the need to keep things consistent by default, if a user wants to shoot themselves in the foot it ought to be allowed. (Tools not policy! :) I guess I'm going to have to run CMakeDetermineCXXCompiler again myself. :/. Joe
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
