CMakeRCInformation.cmake 960 B

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