[CMake] cmake vista tutorial?

Craig Miller craig.miller at spatialminds.com
Wed Sep 3 18:28:08 EDT 2008


The FIND_PROGRAM(CMAKE_RC_COMPILER NAMES ${CMAKE_RC_COMPILER_LIST} DOC "RC
compiler") line in CMakeDetermineRCCompiler.cmake is setting
CMAKE_RC_COMPILER_LIST to "rc".  I'll debug further this evening.

Craig


-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com] 
Sent: Wednesday, September 03, 2008 11:45 AM
To: Craig Miller
Cc: 'cmake'
Subject: Re: [CMake] cmake vista tutorial?

Craig Miller wrote:
> Yep, a Visual Studio 2005 target works.
> 
> 
> The output of rc /? is:
> 
> c:\users\craig\nav\maps\basemaps\install>rc /?
> 
> Microsoft (R) Windows (R) Resource Compiler Version 5.2.3690.0 
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 

> 
> 
> c:\users\craig\nav\maps\basemaps\install>
> 
> 
> When I run the CMakeSetup via the Visual Studio command prompt, select 
> nmake as an output option, and press configure I get the same error
message:
> 
> CMake Error:  your RC compiler:  "CMAKE_RC_COMPILER-NOTFOUND" was not
found.
> Please set CMAKE_RC_COMPILER to a valid compiler path or name.
> 

OK, so, that is all done in Modules/CMakeDetermineRCCompiler.cmake.  Can you
add some message statements into that file?

It must be this line that fails for some odd reason:

   FIND_PROGRAM(CMAKE_RC_COMPILER NAMES ${CMAKE_RC_COMPILER_LIST} DOC "RC
compiler")

Add some message("CMAKE_RC_COMPILER_LIST = ${CMAKE_RC_COMPILER_LIST}") stuff
and any other message you think might help into that file and run again.

-Bill




More information about the CMake mailing list