MantisBT - CMake
View Issue Details
0008093CMakeModulespublic2008-11-13 14:132011-06-06 18:25
Clinton Stimpson 
Bill Hoffman 
normalminoralways
closedfixed 
CMake-2-6 
CMake-2-6 
0008093: When using Win64 generator, can't find VS redist dir
== CMakeLists.txt ==
INCLUDE(InstallRequiredSystemLibraries)
==

Choosing Visual Studio 8 2005 Win64 generator results in MSVC80_REDIST_DIR not found. CMake takes a 64 bit view of the registry and can't find the Visual Studio installation.
No tags attached.
Issue History
2008-11-13 14:13Clinton StimpsonNew Issue
2008-11-13 18:01David ColeStatusnew => assigned
2008-11-13 18:01David ColeAssigned To => David Cole
2008-11-13 18:01David ColeNote Added: 0014105
2008-11-13 18:01David ColeAssigned ToDavid Cole => Bill Hoffman
2009-06-04 18:48Chuck SeberinoNote Added: 0016642
2011-02-08 12:09David ColeNote Added: 0025328
2011-02-08 12:09David ColeStatusassigned => resolved
2011-02-08 12:09David ColeFixed in Version => CMake-2-6
2011-02-08 12:09David ColeResolutionopen => fixed
2011-06-06 18:25David ColeStatusresolved => closed
2011-06-06 18:25David ColeNote Added: 0026705

Notes
(0014105)
David Cole   
2008-11-13 18:01   
Fixed in CVS HEAD:
http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/InstallRequiredSystemLibraries.cmake?root=CMake&r1=1.13&r2=1.14 [^]

Bill, could you merge to CMake-2-6...? Thanks.
(0016642)
Chuck Seberino   
2009-06-04 18:48   
FYI, On my Vista 64 system, the proper registry key for Visual Studio 8.0 is in
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\VisualStudio\\8.0;InstallDir]/../../VC/redist"

The difference being that there is a 'Wow6432Node' directory between SOFTWARE and Microsoft. I simply added the additional search path to the list like so:

    FIND_PATH(MSVC80_REDIST_DIR NAMES ${CMAKE_MSVC_ARCH}/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest
      PATHS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0;InstallDir]/../../VC/redist"
            "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\VisualStudio\\8.0;InstallDir]/../../VC/redist"
      )

Checked against Visual Studio 2005 Pro
(0025328)
David Cole   
2011-02-08 12:09   
This is long since fixed and merged into the main stream release branches of CMake...
(0026705)
David Cole   
2011-06-06 18:25   
Closing resolved issues that have not been updated in more than 3 months.