SunPro-Fortran.cmake 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. set(CMAKE_Fortran_VERBOSE_FLAG "-v")
  2. set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixed")
  3. set(CMAKE_Fortran_FORMAT_FREE_FLAG "-free")
  4. set(CMAKE_Fortran_COMPILE_OPTIONS_PIC "-KPIC")
  5. set(CMAKE_Fortran_COMPILE_OPTIONS_PIE "")
  6. set(_CMAKE_Fortran_PIE_MAY_BE_SUPPORTED_BY_LINKER NO)
  7. set(CMAKE_Fortran_LINK_OPTIONS_PIE "")
  8. set(CMAKE_Fortran_LINK_OPTIONS_NO_PIE "")
  9. set(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-KPIC")
  10. set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-G")
  11. set(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-R")
  12. set(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":")
  13. set(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-h")
  14. set(CMAKE_EXECUTABLE_RUNTIME_Fortran_FLAG "-R")
  15. string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
  16. string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
  17. string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -xO2 -xspace -DNDEBUG")
  18. string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -xO3 -DNDEBUG")
  19. string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -g -xO2 -DNDEBUG")
  20. set(CMAKE_Fortran_MODDIR_FLAG "-moddir=")
  21. set(CMAKE_Fortran_MODPATH_FLAG "-M")
  22. set(CMAKE_Fortran_LINKER_WRAPPER_FLAG "-Qoption" "ld" " ")
  23. set(CMAKE_Fortran_LINKER_WRAPPER_FLAG_SEP ",")
  24. set(CMAKE_Fortran_PREPROCESS_SOURCE
  25. "<CMAKE_Fortran_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -F -fpp <SOURCE> -o <PREPROCESSED_SOURCE>")
  26. set(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE "<CMAKE_Fortran_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -F -fpp <SOURCE> -o <PREPROCESSED_SOURCE>")
  27. set(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE "<CMAKE_Fortran_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")