Piotr Dobrogost wrote:
Mattias Helsing wrote:

Hi Piotr,

I have a vague memory of a similar problem. As I remember - I was
better off using %VS90COMNTOOLS%vsvars32.bat to source in the build
environment. Could you try this?

Thanks for your interest and info.
Problem has mysteriously gone :)
I still don't know how to configure VC command line tools for gui tools
like cmake-gui, though.


I have put in a fix in CVS CMake:

$ cvs commit -m "BUG: fix cmake so that if you configure with a bad env for cl, then with a good path, it will configure correctly" CMakeTestCCompiler.cmake CMakeTestCXXCompiler.cmake
Committer: Bill Hoffman <[email protected]>
/cvsroot/CMake/CMake/Modules/CMakeTestCCompiler.cmake,v <-- CMakeTestCCompiler.cmake
new revision: 1.26; previous revision: 1.25
/cvsroot/CMake/CMake/Modules/CMakeTestCXXCompiler.cmake,v <-- CMakeTestCXXCompiler.cmake
new revision: 1.20; previous revision: 1.19

I was able to reproduce the problem pretty easy. The fix was to remove some configured files if the compiler failed its test compile.

I asked this question here
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/deb76102-7977-4e71-8e13-7da8cc990997


There are two ways that I know of:

1. put the VC environment stuff in your environment by hand into the my computer properties:
INCLUDE, LIB, PATH
2. run cmake-gui from a shell that has vsvars.bat already run in it.

-Bill


_______________________________________________
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

Reply via email to