[Cmake] CMake doesn't work with latest VS7 release

Bill Hoffman bill.hoffman at kitware.com
Wed Apr 30 08:44:13 EDT 2003


We have already seen the problem.   Unfortunately, we do not have
a copy of the new compiler here right now.   Here are the problems:

1. cmake can no longer find devenv.com automatically.    As you point
out the registry entry has changed.   

2. You can get around 1, by setting CMAKE_MAKE_PROGRAM in your cache
to the full path to devenv.com

3. Once you do 2, there is one problem left.    7.0 and 7.1 project files
are not compatible.    7.1 will load 7.0 files, but it will ask if you want
to convert the files before it loads them.    This is a problem with the try
compile code, because the default answer is no, so the try compiles all
fail.


So, it seems that we need a new generator for 7.1.    
You could help with the following information:

1. what is the right registry entry that will help find devenv.com
2. what change is needed in the generated project file to make it work
with 7.1 without the conversion.   The best way to do that, would be
to generate a file, and let it do the conversion, then do a diff.

-Bill

At 12:15 AM 4/30/2003, rbb at rkbloom.net wrote:

>I am trying to use CMake for a project of mine, but I have been unable to
>make it work.  The error I have been getting is:
>
>"CMake Error: EnableLanguage was unable to find a CMAKE_MAKE_PROGRAM".
>
>After search on google, I believe I have found the problem.  I installed
>VS7.1 to "d:\Program Files\Microsoft Visual Studio .NET 2003"  Notice that
>is D:\, not c:\, and there is a 2003 at the end (the default for the VS
>version I installed).  Then I looked at CMakeVS7FindMake.cmake, which is
>looking in the registry at:
>
>[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.0\\Setup\\VS;EnvironmentDirectory]
>And then the MSVS directory without the 2003 at the end.
>
>But, when I looked at my registry, that key doesn't exist.  The only
>difference is that 7.0 changes to 7.1.
>
>I am still working to get CMake to configure itself (I found the Advanced
>Values, but now it is failing with cl not being able to build programs).
>
>I will create a patch as soon as I get CMake to build, but I wanted to
>make this issue known as soon as I could.
>
>Ryan
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 






More information about the CMake mailing list