[CMake] Visual Studio 8
Bill Hoffman
bill.hoffman at kitware.com
Tue Sep 18 10:53:15 EDT 2007
Jesper Eskilson wrote:
> Hi,
>
> If I tell CMake to generate Visual Studio 8 project files, CMake
> requires that the right "cl.exe" can be found in PATH. More
> specifically, if the wrong cl.exe is found in PATH (say from Visual
> Studio 7), then CMake just pukes with some strange error.
>
> This confuses several of my users (who commonly have VS7 first in their
> path); they expect that CMake should chose the right compiler since they
> have selected the Visual Studio 8 generator.
>
> I can understand how and why this happens, but is there a reason for not
> fixing CMake such that it finds the correct compiler?
>
>
Actually for the project files, it may say it is finding cl, but all it
really needs to find is devenv. Which
is the same name for both VS7 and VS8, so if it gets the wrong one, I
could see trouble. There
is no reason it should not be fixed. The problem is in the file
Modules/CMakeVS8FindMake.cmake.
I suppose something could be done to make sure it finds the right
version. Right now if devenv
is in your PATH that is what it uses. However, by default devenv is
not in the PATH, so this
is why other people are not having this problem. You should be able to
modify that module, and
post the results to a bug report if you get it working.
-Bill
More information about the CMake
mailing list