[CMake] Cmake 2.8.1 error

Alexander Neundorf a.neundorf-work at gmx.net
Sun Apr 18 05:00:41 EDT 2010


On Saturday 17 April 2010, 罗勇刚 wrote:
> I am afraid I have solve the problem by modify the source code of cmake.
> So, CMake can set env vars.
> Just didn't do that.
> I have already if cdt is using Intel compiler it's will add the PATH
> env to eclipse build system.

When using the Intel compiler, cmake puts the env.var INTEL_LICENSE_FILE into 
the Eclipse project file, so Eclipse sets this variable when it executes a 
build. 
If you are using MSVC, PATH, INCLUDE, LIB and LIBPATH are put in the Eclipse 
project file.

So what do you propose ?
Under Windows, always put the PATH which was set at cmake-time into the 
Eclipse project file ?

> And also I found the eclipse target is a little old so make strange
> actions such as
> it's can not generate the correct PREDEFINED macros correctly.

Sorry, I don't understand. As far as I know getting the predefined macros and 
include dirs from the compiler should work, at least for gcc and the Intel 
compiler. If not, please file a bug report.

Alex


More information about the CMake mailing list