Committed to CVS HEAD:<div><br></div><div><a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/InstallRequiredSystemLibraries.cmake?root=CMake&r1=1.13&r2=1.14">http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/InstallRequiredSystemLibraries.cmake?root=CMake&r1=1.13&r2=1.14</a></div>
<div><br></div><div><br></div><div>Thanks for the report,</div><div>David<br><br></div><div><br><div class="gmail_quote">On Thu, Nov 13, 2008 at 3:42 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>
That fixes it for me too.<br>
<br>
Thanks,<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"><div class="Ih2E3d">
This fixes it for me:<br>
<br>
.......<br>
GET_FILENAME_COMPONENT(devenv_dir "${CMAKE_MAKE_PROGRAM}" PATH)<br>
GET_FILENAME_COMPONENT(base_dir "${devenv_dir}/../.." ABSOLUTE)<br>
<br>
IF(MSVC80)<br>
# Find the runtime library redistribution directory.<br>
FIND_PATH(MSVC80_REDIST_DIR NAMES ${CMAKE_MSVC_ARCH}/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest<br>
PATHS<br>
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0;InstallDir]/../../VC/redist"<br>
"${base_dir}/VC/redist"<br>
)<br>
.......<br>
<br>
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.<br>
<br>
<br>
Thanks,<br>
David<br>
<br>
<br></div><div><div></div><div class="Wj3C7c">
On Thu, Nov 13, 2008 at 2:08 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>
<br>
I see in the cmake code that if I pick the Win64 generator, cmake<br>
takes a 64 bit view of the registry and tries to find things.<br>
That makes sense to me in general, such as finding 64 bit python,<br>
based on registry keys, etc... But Visual Studio itself is a 32<br>
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>
<br>
Clinton Stimpson wrote:<br>
<br>
<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,<br>
it sets MSVC80_REDIST_DIR correctly.<br>
If I go back File -> Delete Cache, then hit configure again,<br>
but choose "Visual Studio 8 2005 Win64" as the generator, then<br>
MSVC80_REDIST_DIR is not found.<br>
<br>
Clint<br>
<br>
David Cole wrote:<br>
<br>
It's looking in the right place. You're using the 64-bit<br>
regedit. If you view it with the 32-bit regedit (found,<br>
paradoxically, at C:\WINDOWS\SysWOW64\regedit.exe) then<br>
you'll see it as 32-bit cmake is asking for it...<br>
<br>
Side note: you can always use Process Explorer from<br>
<a href="http://sysinternals.com" target="_blank">sysinternals.com</a> <<a href="http://sysinternals.com" target="_blank">http://sysinternals.com</a>><br>
<<a href="http://sysinternals.com" target="_blank">http://sysinternals.com</a>> to examine running processes to<br>
determine if they are 32-bit or 64-bit if you need to. I<br>
would say Process Explorer is the most indispensable tool<br>
that exists on Windows.<br>
<br>
So you include InstallRequiredSystemLibraries and what<br>
happens?<br>
<br>
<br>
On Thu, Nov 13, 2008 at 12:43 PM, Clinton Stimpson<br>
<<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>><br></div></div>
<mailto:<a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a><div class="Ih2E3d"><br>
<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<br>
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>
<br>
Is there some way to make this work without me helping<br>
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>
<<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></div>
<mailto:<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>>><div class="Ih2E3d"><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
<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>
_______________________________________________<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>
</div></blockquote>
<br>
</blockquote></div><br></div>