[CMake] Cmake 2.8.1 error
Bill Hoffman
bill.hoffman at kitware.com
Fri Apr 16 12:09:41 EDT 2010
罗勇刚(Yonggang Luo) wrote:
> Because of not pollute the system environment variables. so I was
> using batch files to set the PATH env variable, and also other
> variable. But One problem appeared, because once
> I was using
> cmake -G "Eclipse CDT4 - MinGW Makefiles" src
> to generate eclipse project files, I can't build the project because
> the environment variables for cmake and mingw32-make is changed!
> Even though cmake is generated the absolute path, but sometimes, it's
> need to access to DLL files, so even though you call the programs, but
> the PATH env var is changed, the app will raising errors that can't
> find those DLL files.
> So, The best way to deal with such an problem is direct using the
> current env variables to replace the system env variables:)
> Thanks
>
>
CMake can not set env vars. You have to run Eclipse with the the
correct env. You should post this question to the eclipse mailing list.
--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
More information about the CMake
mailing list