mirror of
https://github.com/reactos/CMake.git
synced 2025-03-04 09:57:12 +00:00

The naming convention for submodule files varies across compilers. Add a table to the compiler information modules and thread the information through to the Fortran module dependency parser. Fill out the table for compiler ids known to support Fortran submodules. Fixes: #18746
16 lines
473 B
CMake
16 lines
473 B
CMake
include(Compiler/PGI)
|
|
__compiler_pgi(Fortran)
|
|
|
|
set(CMAKE_Fortran_SUBMODULE_SEP "-")
|
|
set(CMAKE_Fortran_SUBMODULE_EXT ".mod")
|
|
|
|
set(CMAKE_Fortran_PREPROCESS_SOURCE
|
|
"<CMAKE_Fortran_COMPILER> -Mpreprocess <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
|
|
|
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-Mnofreeform")
|
|
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-Mfreeform")
|
|
|
|
string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -Mbounds")
|
|
|
|
set(CMAKE_Fortran_MODDIR_FLAG "-module ")
|