[cmake-developers] Weird comments in "CMakeRCInformation.cmake"

Brad King brad.king at kitware.com
Tue Jan 17 15:28:59 EST 2012


On 1/17/2012 2:13 PM, Eric Noulard wrote:
> The current comments in Modules/CMakeRCInformation.cmake
>
> looks like copy/paste from another file.
>
> # This file sets the basic flags for the Fortran language in CMake.
> # It also loads the available platform file for the system-compiler
> # if it exists.

Obviously this was copied from CMakeFortranInformation at some point.
Just s/Fortran/RC/.

> # set this variable so we can avoid loading this more than once.
> SET(CMAKE_RC_INFORMATION_LOADED 1)
>
> but "CMAKE_RC_INFORMATION_LOADED" does not seem to be used anywhere?

It's used in the C++ code:

http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmGlobalGenerator.cxx;hb=v2.8.6#l421

> Would somebody explain me how this file is used and from where?
> How does this file
> CMakeRCInformation.cmake
> relates to:
> CMakeDetermineRCCompiler.cmake
> CMakeRCCompiler.cmake.in
> CMakeTestRCCompiler.cmake

The language init process is documented here:

   http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmGlobalGenerator.cxx;hb=v2.8.6#l152

-Brad



More information about the cmake-developers mailing list