I have the following versions of VS installed:

VS 2003
VS 2005
VS 2008
VC 2010 Express

So I can imagine there would be a lot of confusion :P

FWIW, CMake can find VS 2003 and VS2008 just fine.

I will look at the script and debug this a bit and then report back to you
guys. Thanks for the guidance.

---------
Robert Dailey


On Mon, Nov 21, 2011 at 8:59 AM, Bill Hoffman <bill.hoff...@kitware.com>wrote:

> On 11/21/2011 9:23 AM, Robert Dailey wrote:
>
>> I think though that by default, no visual studio installations place the
>> install path in PATH in the environment. So if I'm remembering correctly
>> and that is true, what other means does it use? Does it use the registry
>> at all? If you could kindly describe the search path it uses that would
>> be very helpful. The only other way for me to figure this out is to skim
>> the source code, which would be very time consuming! Hopefully you can
>> save me some time :)
>>
>>
> The logic can all be found here:
>
> Modules/CMakeVS10FindMake.**cmake
>
> It is a very small file.  Obviously needs a bit of work.  It is finding
> devenv.com 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 devenv.com.  In your
> case that is most likely what is happening.
>
> If you had a machine with only VS 10 express it would have worked fine. :)
>
> It is very hard to test things like this... :)
>
>
> If you can tweak the CMake code in Modules/CMakeVS10FindMake.**cmake and
> make it work on your machine, that would be great.
>
> Thanks.
>
> -Bill
>
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to