On 11/28/2010 10:59 PM, Bill Hoffman wrote:
> On 11/24/2010 5:02 PM, Ted Berg wrote:
>> I'm seeing a reproducible failure generating "Visual Studio 10" output
>> on a system with the following installed:
>>
>> CMake 2.8.2
>> CMake 2.8.3
>>
>> Visual Studio 2005
>> Visual Studio 2010
>>
>> Program Files\Microsoft SDKs\Windows
>>    v6.1
>>    v7.0A
>>    v7.1
>>
>> To keep everything sane I use command files to set environment variables
>> as needed, beyond the compiler specific command windows.
>>
>> In a VS 2010 command window, with an environment set to point at the
>> V7.0A platform SDK, I can reliably create and build NMake projects.  In
>> that same window CMake errors out at "Checking for working C compiler
>> using: Visual Studio 10", claiming a broken compiler.
>>
>> Checking the CMakeFiles\CMakeErrors.log shows that while it's using the
>> correct CL.exe, the rc.exe from the v6.1 platform sdk is being used.
>> This rc.exe objects to the command line option "/nologo" somehow
>> interpreting it as "-ologo" and terminating with a fatal error.
>>
>> If I move/rename the v6.1 platform sdk directory, CMake completes
>> without issue.
>>
>> Is this a known issue, am I insane, or should I start assembling a
>> sample project and logs?
>>
>>
> 
> I am pretty sure CMake just used the rc.exe that is in the PATH.  So, it
> sounds like your environment is not quite right.
> 

You are correct.

It turns out that the problem was caused by having the v6.1
include/lib/bin paths prefixed to their respective Visual Studio 2005
Tools | Options | Projects and Solutions | VC++ Directories entries.
Those directories are prefixed to the VS 2010 search directories, and
I've not found a way to remove them in VS 2010.  I cleared them out of
VS 2005 and all was well.

Thank you.

-- 
ID: 0x9AAE10A5              Keyserver: pool.sks-keyservers.net
Fingerprint: E79C 8FB2 D41D FCA3 410D 3D11 B5BD 5130 9AAE 10A5

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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