[CMake] looking for Visual Studio installation

Andreas Pokorny andreas.pokorny at gmail.com
Sun Apr 19 13:43:09 EDT 2009


Hi there,

2009/4/19 Piotr Dobrogost <pd at opensource.dobrogost.pl>:
> [...]
> Would it be a good idea to make cmake be able to find VS even if these
> environment variables weren't set? Maybe using registry or just looking
> at default installation folder?

It is not only about finding visual studio but also about configuring
cl. If you look into your Visual Studio 2003-2008 folders for
*.platform.config xml files. You will find the correct settings for
INCLUDE LIB and LIBPATH, and several futher flags required for the
respective windows or windows ce platform.

The different wince cmake patches all parse the file to get some of
the settings right. But the environment itself is not configured. I
also wondered whether it would be possible to set the environment
automatically, based on the windows platform selected.

kind regards
Andreas


More information about the CMake mailing list