[CMake] Determine if generator is Visual Studio

Robert Dailey rcdailey at gmail.com
Tue Jun 9 20:13:17 EDT 2009


On second thought, I suppose what I really want to check for is MSVC in
general, since you can still compile using MSVC without Visual Studio.

On Tue, Jun 9, 2009 at 7:06 PM, Robert Dailey <rcdailey at gmail.com> wrote:

> Is there a clean and compact way I can find out if Visual Studio targets
> are being built? Note that I want to be able to check this regardless of the
> version. I know I can check CMAKE_GENERATOR, but I would end up having to
> check around 8 strings for all possible versions of visual studio. Is there
> a cleaner way?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090609/8c002fa4/attachment-0001.htm>


More information about the CMake mailing list