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
-- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo _______________________________________________ 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