PGI-Fortran.cmake 473 B

123456789101112131415
  1. include(Compiler/PGI)
  2. __compiler_pgi(Fortran)
  3. set(CMAKE_Fortran_SUBMODULE_SEP "-")
  4. set(CMAKE_Fortran_SUBMODULE_EXT ".mod")
  5. set(CMAKE_Fortran_PREPROCESS_SOURCE
  6. "<CMAKE_Fortran_COMPILER> -Mpreprocess <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
  7. set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-Mnofreeform")
  8. set(CMAKE_Fortran_FORMAT_FREE_FLAG "-Mfreeform")
  9. string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -Mbounds")
  10. set(CMAKE_Fortran_MODDIR_FLAG "-module ")