Is it 64-bit Windows?<div>What happens if you put those files in &quot;C:\Windows\SysWOW64&quot;?<br><br></div><div>The command:</div><div>dir /s /b &quot;C:\Windows\kernel32.dll&quot;</div><div><br></div><div>will show you that there are actually many kernel32.dlls to be found within Windows nowadays...</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Wed, Jun 2, 2010 at 5:18 PM, Scott Fowler <span dir="ltr">&lt;<a href="mailto:s.fowler@tecplot.com">s.fowler@tecplot.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">I&#39;m using the &#39;fixup_bundle&#39; capability for generating my installation package, but GetPrerequisites fails for a specific file, which is in C:/Windows/System32.  Other files in C:/Windows/System32 are found just fine.  I&#39;ve detected that
 the problem is specifically with the find_file() call.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"># Example Code that illustrates the problem</p>
<p class="MsoNormal">set (myfiles</p>
<p class="MsoNormal">    kernel32.dll</p>
<p class="MsoNormal">    mpich2mpi.dll </p>
<p class="MsoNormal">    testfile.txt  #dummy file I added to System32 for testing purposes.</p>
<p class="MsoNormal">    )</p>
<p class="MsoNormal">set (dirs</p>
<p class="MsoNormal">    &quot;C:/Windows/System32&quot;</p>
<p class="MsoNormal">    &quot;C:/TEMP&quot;</p>
<p class="MsoNormal">    )</p>
<p class="MsoNormal">foreach(file ${myfiles})</p>
<p class="MsoNormal">  set(rt &quot;rt-NOTFOUND&quot;)</p>
<p class="MsoNormal">  find_file(rt &quot;${file}&quot; ${dirs} NO_DEFAULT_PATH)</p>
<p class="MsoNormal">  MESSAGE(STATUS &quot;FILE: ${file}; RT: ${rt}&quot;)</p>
<p class="MsoNormal">endforeach(file)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Ouput:</p>
<p class="MsoNormal">FILE: kernel32.dll; RT: C:/Windows/System32/kernel32.dll</p>
<p class="MsoNormal">FILE: mpich2mpi.dll; RT: rt-NOTFOUND</p>
<p class="MsoNormal">FILE: testfile.txt; RT: rt-NOTFOUND</p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"> </span></p>
<p class="MsoNormal">If I copy mpich2mpi.dll and testfile.txt to C:/TEMP, the find_file() call will find the files in C:/TEMP.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">So my question is why does find_file NOT find mpich2mpi.dll in System32, but it can find it in C:/TEMP.  Does find_file treat the System32 directory special somehow?  Is there a recommended work around to this issue?</p>

<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal">Scott</p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are NOT the intended recipient or the person responsible
 for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying this e-mail is strictly prohibited.<br>
</font>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>