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

Eric Noulard eric.noulard at gmail.com
Tue Jan 17 16:19:52 EST 2012


2012/1/17 Brad King <brad.king at kitware.com>:
> 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/.

OK.

>> # 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

ok my bad.
Didn't noticed that "RC" could be a language just as C, CXX etc...

>> 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

Thanks Brad I'll read that's what I was looking for.

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org



More information about the cmake-developers mailing list