CMakeFortranCompiler.cmake.in 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. set(CMAKE_Fortran_COMPILER "@CMAKE_Fortran_COMPILER@")
  2. set(CMAKE_Fortran_COMPILER_ARG1 "@CMAKE_Fortran_COMPILER_ARG1@")
  3. set(CMAKE_Fortran_COMPILER_ID "@CMAKE_Fortran_COMPILER_ID@")
  4. set(CMAKE_Fortran_COMPILER_VERSION "@CMAKE_Fortran_COMPILER_VERSION@")
  5. set(CMAKE_Fortran_COMPILER_WRAPPER "@CMAKE_Fortran_COMPILER_WRAPPER@")
  6. set(CMAKE_Fortran_PLATFORM_ID "@CMAKE_Fortran_PLATFORM_ID@")
  7. set(CMAKE_Fortran_SIMULATE_ID "@CMAKE_Fortran_SIMULATE_ID@")
  8. set(CMAKE_Fortran_SIMULATE_VERSION "@CMAKE_Fortran_SIMULATE_VERSION@")
  9. @_SET_CMAKE_Fortran_COMPILER_ARCHITECTURE_ID@
  10. @SET_MSVC_Fortran_ARCHITECTURE_ID@
  11. set(CMAKE_AR "@CMAKE_AR@")
  12. set(CMAKE_Fortran_COMPILER_AR "@CMAKE_Fortran_COMPILER_AR@")
  13. set(CMAKE_RANLIB "@CMAKE_RANLIB@")
  14. set(CMAKE_Fortran_COMPILER_RANLIB "@CMAKE_Fortran_COMPILER_RANLIB@")
  15. set(CMAKE_COMPILER_IS_GNUG77 @CMAKE_COMPILER_IS_GNUG77@)
  16. set(CMAKE_Fortran_COMPILER_LOADED 1)
  17. set(CMAKE_Fortran_COMPILER_WORKS @CMAKE_Fortran_COMPILER_WORKS@)
  18. set(CMAKE_Fortran_ABI_COMPILED @CMAKE_Fortran_ABI_COMPILED@)
  19. set(CMAKE_COMPILER_IS_MINGW @CMAKE_COMPILER_IS_MINGW@)
  20. set(CMAKE_COMPILER_IS_CYGWIN @CMAKE_COMPILER_IS_CYGWIN@)
  21. if(CMAKE_COMPILER_IS_CYGWIN)
  22. set(CYGWIN 1)
  23. set(UNIX 1)
  24. endif()
  25. set(CMAKE_Fortran_COMPILER_ENV_VAR "FC")
  26. set(CMAKE_Fortran_COMPILER_SUPPORTS_F90 @CMAKE_Fortran_COMPILER_SUPPORTS_F90@)
  27. if(CMAKE_COMPILER_IS_MINGW)
  28. set(MINGW 1)
  29. endif()
  30. set(CMAKE_Fortran_COMPILER_ID_RUN 1)
  31. set(CMAKE_Fortran_SOURCE_FILE_EXTENSIONS f;F;fpp;FPP;f77;F77;f90;F90;for;For;FOR;f95;F95)
  32. set(CMAKE_Fortran_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
  33. set(CMAKE_Fortran_LINKER_PREFERENCE 20)
  34. if(UNIX)
  35. set(CMAKE_Fortran_OUTPUT_EXTENSION .o)
  36. else()
  37. set(CMAKE_Fortran_OUTPUT_EXTENSION .obj)
  38. endif()
  39. # Save compiler ABI information.
  40. set(CMAKE_Fortran_SIZEOF_DATA_PTR "@CMAKE_Fortran_SIZEOF_DATA_PTR@")
  41. set(CMAKE_Fortran_COMPILER_ABI "@CMAKE_Fortran_COMPILER_ABI@")
  42. set(CMAKE_Fortran_LIBRARY_ARCHITECTURE "@CMAKE_Fortran_LIBRARY_ARCHITECTURE@")
  43. if(CMAKE_Fortran_SIZEOF_DATA_PTR AND NOT CMAKE_SIZEOF_VOID_P)
  44. set(CMAKE_SIZEOF_VOID_P "${CMAKE_Fortran_SIZEOF_DATA_PTR}")
  45. endif()
  46. if(CMAKE_Fortran_COMPILER_ABI)
  47. set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_Fortran_COMPILER_ABI}")
  48. endif()
  49. if(CMAKE_Fortran_LIBRARY_ARCHITECTURE)
  50. set(CMAKE_LIBRARY_ARCHITECTURE "@CMAKE_Fortran_LIBRARY_ARCHITECTURE@")
  51. endif()
  52. @CMAKE_Fortran_COMPILER_CUSTOM_CODE@
  53. @CMAKE_Fortran_SYSROOT_FLAG_CODE@
  54. @CMAKE_Fortran_OSX_DEPLOYMENT_TARGET_FLAG_CODE@
  55. set(CMAKE_Fortran_IMPLICIT_INCLUDE_DIRECTORIES "@CMAKE_Fortran_IMPLICIT_INCLUDE_DIRECTORIES@")
  56. set(CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES "@CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES@")
  57. set(CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES "@CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES@")
  58. set(CMAKE_Fortran_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "@CMAKE_Fortran_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@")