On Friday 27 March 2009, Neal Meyer wrote:
> I need to have my CMakeLists file do different things depending on the
> Generator that is being used.  Mostly passing on that version information
> to a build of a 3rd party library.  Is there a way to get that information
> during the CMake run?

You can test CMAKE_GENERATOR (and CMAKE_EXTRA_GENERATOR if you are using the 
KDevelop, Eclipse or CodeBlocks generators).

Alex
_______________________________________________
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

Reply via email to