[CMake] Selecting compiler on Windows platform

a.neundorf-work at gmx.net a.neundorf-work at gmx.net
Mon Oct 22 08:36:05 EDT 2007


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.

Alex


More information about the CMake mailing list