罗勇刚(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.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
_______________________________________________
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