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