[Cmake] How detect build for.

Brad King brad.king at kitware.com
Mon Jun 28 09:58:31 EDT 2004


klaas.holwerda wrote:
> Hi,
> 
> A simple question, how do i know when VisualC is used, or is there a 
> variable that contains
> the choosen "Build For:"
> 
> ( I found BORLAND and CYGWIN ), but WIN32 is not specific enough it 
> looks like.
> 
> Another might be CMAKE_CXX_COMPILER == cl,
> but i assume there most be something more specific?

The variable "CMAKE_GENERATOR" is set to one of several values.  Read 
the output of "cmake --help-full" to see the list of generators.

-Brad


More information about the Cmake mailing list