[cmake-developers] Weird comments in CMakeRCInformation.cmake

2012-01-17 Thread Eric Noulard
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.

How would the seek for windres be related to some Fortran thing?
Then at the end it written

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

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

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

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [cmake-developers] Weird comments in CMakeRCInformation.cmake

2012-01-17 Thread Brad King

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

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers