[CMake] looking for Visual Studio installation

Piotr Dobrogost pd at opensource.dobrogost.pl
Mon Apr 20 06:30:31 EDT 2009


Andreas Pokorny wrote:

> 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.

vsvarsall.bat has hard coded paths and doesn't use any xml files.

> I also wondered whether it would be possible to set the environment
> automatically, based on the windows platform selected.

That what I had in mind too.
All that is needed is to add some variables to cmake to control if one
wants to set environment automatically on platforms where it's needed
and possible.

-- 
Piotr Dobrogost
*** curlpp.org - c++ wrapper for libcurl ***



More information about the CMake mailing list