I have the following versions of VS installed:<div><br></div><div>VS 2003</div><div>VS 2005</div><div>VS 2008</div><div>VC 2010 Express</div><div><br></div><div>So I can imagine there would be a lot of confusion :P</div><div>
<br></div><div>FWIW, CMake can find VS 2003 and VS2008 just fine.</div><div><br></div><div>I will look at the script and debug this a bit and then report back to you guys. Thanks for the guidance.<br clear="all"><div><br>
</div><div>---------</div>Robert Dailey<br>
<br><br><div class="gmail_quote">On Mon, Nov 21, 2011 at 8:59 AM, Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.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 class="im">On 11/21/2011 9:23 AM, Robert Dailey wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think though that by default, no visual studio installations place the<br>
install path in PATH in the environment. So if I&#39;m remembering correctly<br>
and that is true, what other means does it use? Does it use the registry<br>
at all? If you could kindly describe the search path it uses that would<br>
be very helpful. The only other way for me to figure this out is to skim<br>
the source code, which would be very time consuming! Hopefully you can<br>
save me some time :)<br>
<br>
</blockquote>
<br></div>
The logic can all be found here:<br>
<br>
Modules/CMakeVS10FindMake.<u></u>cmake<br>
<br>
It is a very small file.  Obviously needs a bit of work.  It is finding <a href="http://devenv.com" target="_blank">devenv.com</a> on your machine when it should not.  We should most likely check the version of what is found.  For the IDE PATH, LIB and INCLUDE are not used or required.  PATH will be used if it finds <a href="http://devenv.com" target="_blank">devenv.com</a>.  In your case that is most likely what is happening.<br>

<br>
If you had a machine with only VS 10 express it would have worked fine. :)<br>
<br>
It is very hard to test things like this... :)<br>
<br>
<br>
If you can tweak the CMake code in Modules/CMakeVS10FindMake.<u></u>cmake and make it work on your machine, that would be great.<br>
<br>
Thanks.<span class="HOEnZb"><font color="#888888"><br>
<br>
-Bill<br>
</font></span></blockquote></div><br></div>