CMake does use env vars PATH, LIB and INCLUDE when detecting executables, 
libraries and header files. If your env is set up on a machine-wide basis for 
vs 2003, it would not surprise me if some things were found inconsistently when 
attempting to build for vs 10...


On Nov 19, 2011, at 1:48 PM, Robert Dailey <[email protected]> wrote:

> I mean specifically is there some environment variable that CMake checks for 
> the location of VC2010? I want to make sure the correct path is set on it.
> 
> Thanks.
> 
> ---------
> Robert Dailey
> 
> 
> On Sat, Nov 19, 2011 at 12:08 PM, Michael Jackson 
> <[email protected]> wrote:
> The best way to ensure your environment is setup correctly is to launch cmake 
> from one of the dedicated command prompts that come with visual studio. 
> 
> -----
> Mike Jackson                     www.bluequartz.net
> Principal Software Engineer       [email protected]
> BlueQuartz Software               Dayton, Ohio
> ____________________________
> Sent from my mobile device. Please excuse the shortness of the reply. 
> 
> On Nov 19, 2011, at 9:46, Robert Dailey <[email protected]> wrote:
> 
>> Seems that for some reason the VC2010 scripts are finding the VS 2003 
>> compiler, which is where the shorthand form of that path points. Obviously 
>> the path for VC2010 Express doesn't have ".NET" in the path.
>> 
>> Where is it looking for the path to VC2010 Express? Maybe my environment is 
>> setup improperly.
>> 
>> ---------
>> Robert Dailey
>> 
>> 
>> On Fri, Nov 18, 2011 at 10:48 PM, Bill Hoffman <[email protected]> 
>> wrote:
>> On 11/18/2011 6:58 PM, Robert Dailey wrote:
>> Well since this is VC Express, I don't have a "devenv.com
>> <http://devenv.com>" file in my Common7 folder, so I guess that explains it?
>> 
>> 
>> Shouldn't CMake support VC2010 express?
>> 
>> ---------
>> 
>> It does, it is just confused because you have two compilers...
>> 
>> See Modules/CMakeVS10FindMake.cmake  for the logic.  Basically, you need to 
>> set CMAKE_MAKE_PROGRAM to MSBuild I think.   I can't remember but I think 
>> there was some issue with VCExpress.exe and VS 2010 not working at all.
>> 
>> -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
>> 
>> --
>> 
>> 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
> 
> --
> 
> 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
--

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