[CMake] eclipse nmake include folders
Bill Hoffman
bill.hoffman at kitware.com
Tue Jun 17 14:02:45 EDT 2008
Alexander Neundorf wrote:
>> Currently, for the NMake generator one needs to have "sourced" the
>> vsvars32.bat file to set up the environment so that cmake can find the
>> tools etc. Since, the user sources this file at CMake time and then
>> this environment will not be available when running eclipse, I put the
>> the values of: PATH, INCLUDE, LIB, and LIBPATH into the .project file
>> under
>
> If somebody comes up with a nice way to do this automatically (like reading
> the env. vars on the first cmake run, converting them into cmake vars and
> storing them in the cache so they can be used later on with
> include_directories() etc.) maybe the cmake devs would accept such a patch.
>
Not so easy. Those variables have to be around at make time, and not
just cmake time. I suppose you could push all that to the command line
of the compiler. You would have to modify the -I and -LIBPATH for all
invocations of the compiler. However, the command line compiler is meant
to work with these environment variables set, so there might be some
other issues.
-Bill
More information about the CMake
mailing list