mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 15:19:39 +00:00
PGI: Add support for Fortran with the Ninja generator
The PGI documentation says that `-Mpreprocess` "instructs the compiler to perform cpp-like preprocessing on assembly and Fortran input source files". The `-E` flag causes the compiler to spit the result to stdout instead of saving it to a file.
This commit is contained in:
parent
0a9e4e08b5
commit
4087d0ae85
@ -1,6 +1,9 @@
|
||||
include(Compiler/PGI)
|
||||
__compiler_pgi(Fortran)
|
||||
|
||||
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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user