On Tue, Jun 9, 2009 at 8:13 PM, Robert Dailey<[email protected]> wrote: > On Tue, Jun 9, 2009 at 7:13 PM, John Drescher <[email protected]> wrote: >> >> On Tue, Jun 9, 2009 at 8:06 PM, Robert Dailey<[email protected]> 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? >> >> if (MSVC) >> endif(MSVC) > > Ah, I posted too early :) > Thank you for this. I can't believe I missed this in the docs!
I make a lot of use of the wiki http://www.cmake.org/Wiki/CMake_Useful_Variables -- John M. Drescher _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
