[CMake] Error using CMake 2.8.x, Visual Studio 2010, and multiple platform SDKs.
Bill Hoffman
bill.hoffman at kitware.com
Sun Nov 28 22:59:28 EST 2010
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.
-Bill
More information about the CMake
mailing list