[CMake] Switch compiler for subdirectory

Alexander Neundorf a.neundorf-work at gmx.net
Mon Oct 19 16:57:59 EDT 2009


On Monday 19 October 2009, Dixon, Shane wrote:
> In my project, I typically use the cl compiler provided by MSVC9.  I have
> one target that I have to use gnu make and gcc to produce a .dll that I
> link to with the rest of my build system.  How might one switch the
> compiler for just one subdirectory tree?  Does it still go through all the
> checks to ensure the compiler can build a small test program, etc?

In general this is not supported, one build tree = one cmake cache = one build 
tool chain.
You may get around with some hacks, but I wouldn't recommend it.

Alex


More information about the CMake mailing list