This fixes it for me:<div><div><br></div><div>.......</div><div>&nbsp;&nbsp;GET_FILENAME_COMPONENT(devenv_dir &quot;${CMAKE_MAKE_PROGRAM}&quot; PATH)</div><div>&nbsp;&nbsp;GET_FILENAME_COMPONENT(base_dir &quot;${devenv_dir}/../..&quot; ABSOLUTE)</div>
<div><br></div><div>&nbsp;&nbsp;IF(MSVC80)</div><div>&nbsp;&nbsp; &nbsp;# Find the runtime library redistribution directory.</div><div>&nbsp;&nbsp; &nbsp;FIND_PATH(MSVC80_REDIST_DIR NAMES ${CMAKE_MSVC_ARCH}/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest</div><div>
&nbsp;&nbsp; &nbsp; &nbsp;PATHS</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&quot;[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0;InstallDir]/../../VC/redist&quot;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&quot;${base_dir}/VC/redist&quot;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;)</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">&lt;<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>&gt;</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. &nbsp;That makes sense to me in general, such as finding 64 bit python, based on registry keys, etc... &nbsp;But Visual Studio itself is a 32 bit application, and the 64 bit redist is contained in it.<br>

<br>
I guess I&#39;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 &quot;Visual Studio 8 2005&quot; generator, it sets MSVC80_REDIST_DIR correctly.<br>
If I go back File -&gt; Delete Cache, then hit configure again, but choose &quot;Visual Studio 8 2005 Win64&quot; 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&#39;s looking in the right place. You&#39;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&#39;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> &lt;<a href="http://sysinternals.com" target="_blank">http://sysinternals.com</a>&gt; 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 &lt;<a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a> &lt;mailto:<a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a>&gt;&gt; wrote:<br>

<br>
 &nbsp; &nbsp;On 64 bit Windows...<br>
 &nbsp; &nbsp;When I run cmake, the InstallRequiredSystemLibraries.cmake is not<br>
 &nbsp; &nbsp;finding the MSVC80_REDIST_DIR automatically.<br>
 &nbsp; &nbsp;It looks in<br>
 &nbsp; &nbsp;[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0;InstallDir]<br>
 &nbsp; &nbsp;for it, but its not there when I run regedit.<br>
 &nbsp; &nbsp;Its actually in<br>
 &nbsp; &nbsp;[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\VisualStudio\\8.0;InstallDir]. <br>
<br>
 &nbsp; &nbsp;Is there some way to make this work without me helping it along?<br>
 &nbsp; &nbsp; Maybe its a more general issue?<br>
<br>
 &nbsp; &nbsp;This is using the cmake 2.6.2 binaries from <a href="http://cmake.org" target="_blank">cmake.org</a><br>
 &nbsp; &nbsp;&lt;<a href="http://cmake.org" target="_blank">http://cmake.org</a>&gt;.<br>
<br>
 &nbsp; &nbsp;Clint<br>
<br>
 &nbsp; &nbsp;_______________________________________________<br>
 &nbsp; &nbsp;CMake mailing list<br>
 &nbsp; &nbsp;<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a> &lt;mailto:<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a>&gt;<br>
 &nbsp; &nbsp;<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>