This fixes it for me:<div><div><br></div><div>.......</div><div> GET_FILENAME_COMPONENT(devenv_dir "${CMAKE_MAKE_PROGRAM}" PATH)</div><div> GET_FILENAME_COMPONENT(base_dir "${devenv_dir}/../.." ABSOLUTE)</div>
<div><br></div><div> IF(MSVC80)</div><div> # Find the runtime library redistribution directory.</div><div> FIND_PATH(MSVC80_REDIST_DIR NAMES ${CMAKE_MSVC_ARCH}/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest</div><div>
PATHS</div><div> "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0;InstallDir]/../../VC/redist"</div><div> "${base_dir}/VC/redist"</div><div> )</div><div>.......</div>
<div><br></div>If you could verify that it works for you, too, I will commit this to CVS HEAD of CMake and request that it be merged for the next drop of the 2.6 branch also.</div><div><br></div><div><br></div><div>Thanks,</div>
<div>David</div><div><br></div><div><br><div class="gmail_quote">On Thu, Nov 13, 2008 at 2:08 PM, Clinton Stimpson <span dir="ltr"><<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I see in the cmake code that if I pick the Win64 generator, cmake takes a 64 bit view of the registry and tries to find things. That makes sense to me in general, such as finding 64 bit python, based on registry keys, etc... But Visual Studio itself is a 32 bit application, and the 64 bit redist is contained in it.<br>
<br>
I guess I'll put this in the bug tracker.<br>
<br>
Thanks,<br>
Clint<br><font color="#888888">
<br>
Clinton Stimpson wrote:<br>
</font><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="Wj3C7c">
<br>
The Process Explorer verifies its a 32 bit image.<br>
<br>
My CMakeLists.txt file ===<br>
INCLUDE(InstallRequiredSystemLibraries)<br>
===== end file<br>
<br>
In cmake-gui, if I pick the "Visual Studio 8 2005" generator, it sets MSVC80_REDIST_DIR correctly.<br>
If I go back File -> Delete Cache, then hit configure again, but choose "Visual Studio 8 2005 Win64" as the generator, then MSVC80_REDIST_DIR is not found.<br>
<br>
Clint<br>
<br>
David Cole wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It's looking in the right place. You're using the 64-bit regedit. If you view it with the 32-bit regedit (found, paradoxically, at C:\WINDOWS\SysWOW64\regedit.exe) then you'll see it as 32-bit cmake is asking for it...<br>
<br>
Side note: you can always use Process Explorer from <a href="http://sysinternals.com" target="_blank">sysinternals.com</a> <<a href="http://sysinternals.com" target="_blank">http://sysinternals.com</a>> to examine running processes to determine if they are 32-bit or 64-bit if you need to. I would say Process Explorer is the most indispensable tool that exists on Windows.<br>
<br>
So you include InstallRequiredSystemLibraries and what happens?<br>
<br>
<br>
On Thu, Nov 13, 2008 at 12:43 PM, Clinton Stimpson <<a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a> <mailto:<a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a>>> wrote:<br>
<br>
On 64 bit Windows...<br>
When I run cmake, the InstallRequiredSystemLibraries.cmake is not<br>
finding the MSVC80_REDIST_DIR automatically.<br>
It looks in<br>
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0;InstallDir]<br>
for it, but its not there when I run regedit.<br>
Its actually in<br>
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\VisualStudio\\8.0;InstallDir]. <br>
<br>
Is there some way to make this work without me helping it along?<br>
Maybe its a more general issue?<br>
<br>
This is using the cmake 2.6.2 binaries from <a href="http://cmake.org" target="_blank">cmake.org</a><br>
<<a href="http://cmake.org" target="_blank">http://cmake.org</a>>.<br>
<br>
Clint<br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a> <mailto:<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a>><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
<br>
</blockquote>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
</div></div><div class="Ih2E3d"><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></blockquote>
<br><div class="Ih2E3d">
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
</div><div><div></div><div class="Wj3C7c"><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>