[CMake] Does CMake 2.6-patch 4 support MS Visual Studio 2008?
Bill Hoffman
bill.hoffman at kitware.com
Fri Oct 30 14:15:10 EDT 2009
Sarbak, Joseph wrote:
> Hello Bill and Shane,
>
> Thanks for offering your help. Below is a listing of my directory where
> I have the compilers installed, my PATH=, and also two of the cached
> variables Bill asked about. I don't know how to get two (MAKECOMMAND,
> and CMAKE_BUILD_TOOL) of those variables.
>
> I appreciate your help.
>
> Joe
>
>
> CMAKE_MAKE_PROGRAM=C:/PROGRA~1/MICROS~1.0/Common7/IDE/devenv.com
> CMAKE_BUILD_TOOL=C:/PROGRA~1/MICROS~1.0/Common7/IDE/devenv.com
>
> MAKECOMMAND:STRING=?
> CMAKE_BUILD_TOOL:INTERNAL=?
>
> Here are the first elements in my PATH=. Notice VisStudio 2008 is
> listed prior to any other compiler.
>
> H:\dev\esp\trunk\main\models\build\..\..\..\..\third-party\cmake\cmake-2
> .6.4-win32-x86\bin;c:\Program Files\Microsoft Visual Studio
> 9.0\Common7\IDE;c:\Program Files\Microsoft Visual Studio
> 9.0\VC\BIN;c:\Program Files\Microsoft Visual Studio 9.0\Common7\T
> ools;c:\WINNT\Microsoft.NET\Framework\v3.5;c:\WINNT\Microsoft.NET\Framew
> ork\v2.0.50727;c:\Program Files\Microsoft V
> isual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft
> SDKs\Windows\v6.0A\bin;H:\dev\esp\third-party\python\win_
> ...
Looks like it is picking up the VS 8 instead of 9 for some reason... Do
you have 8 in your PATH? The find does this:
Modules/CMakeVS9FindMake.cmake:
FIND_PROGRAM(CMAKE_MAKE_PROGRAM
NAMES ${_CMAKE_MAKE_PROGRAM_NAMES}
HINTS
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0\\Setup\\VS;EnvironmentDirectory]
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0\\Setup;Dbghelp_path]
"$ENV{ProgramFiles}/Microsoft Visual Studio 9.0/Common7/IDE"
"$ENV{ProgramFiles}/Microsoft Visual Studio9.0/Common7/IDE"
"$ENV{ProgramFiles}/Microsoft Visual Studio 9/Common7/IDE"
"$ENV{ProgramFiles}/Microsoft Visual Studio9/Common7/IDE"
"$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 9.0/Common7/IDE"
"$ENV{ProgramFiles} (x86)/Microsoft Visual Studio9.0/Common7/IDE"
"$ENV{ProgramFiles} (x86)/Microsoft Visual Studio 9/Common7/IDE"
"$ENV{ProgramFiles} (x86)/Microsoft Visual Studio9/Common7/IDE"
"/Program Files/Microsoft Visual Studio 9.0/Common7/IDE/"
"/Program Files/Microsoft Visual Studio 9/Common7/IDE/"
PATHS
"$ENV{ProgramFiles} (x86)/Microsoft Visual Studio .NET/Common7/IDE"
"$ENV{ProgramFiles}/Microsoft Visual Studio .NET/Common7/IDE"
)
Do you have different registry entries? If you hack the above file in
your CMake to point directly at the right dir for your install does it work?
Note, you will have to start with a new build directory to test changes
with this file.
-Bill
More information about the CMake
mailing list