Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Modules / CMakeRCInformation.cmake
blobefc73846f40e589a3f78d3cd81b7d8963e24feee
2 # This file sets the basic flags for the Fortran language in CMake.
3 # It also loads the available platform file for the system-compiler
4 # if it exists.
6 GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_RC_COMPILER} NAME_WE)
7 SET(CMAKE_SYSTEM_AND_RC_COMPILER_INFO_FILE
8   ${CMAKE_ROOT}/Modules/Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}.cmake)
9 INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)
12 SET (CMAKE_RC_FLAGS "$ENV{RCFLAGS} ${CMAKE_RC_FLAGS_INIT}" CACHE STRING
13      "Flags for Fortran compiler.")
17 # now define the following rule variables
18 # CMAKE_RC_COMPILE_OBJECT
19 SET(CMAKE_INCLUDE_FLAG_RC "-I")
20 # compile a Resource file into an object file
21 IF(NOT CMAKE_RC_COMPILE_OBJECT)
22   SET(CMAKE_RC_COMPILE_OBJECT
23     "<CMAKE_RC_COMPILER> <FLAGS>  /fo<OBJECT> <SOURCE>")
24 ENDIF(NOT CMAKE_RC_COMPILE_OBJECT)
26 MARK_AS_ADVANCED(
27 CMAKE_RC_FLAGS
29 # set this variable so we can avoid loading this more than once.
30 SET(CMAKE_RC_INFORMATION_LOADED 1)