summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-09 21:27:16 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-09 21:27:16 (GMT)
commit8f9e0884d4f948526c08c35dde345a142352d549 (patch)
tree84abbb4f1aba8dbaf86d731be851815d0af8ad51
parent976574b01009e11326c7894edf35a4f315b216d4 (diff)
parent4087d0ae85cd9835296a82e0d5a63db0feabcb93 (diff)
downloadCMake-8f9e0884d4f948526c08c35dde345a142352d549.zip
CMake-8f9e0884d4f948526c08c35dde345a142352d549.tar.gz
CMake-8f9e0884d4f948526c08c35dde345a142352d549.tar.bz2
Merge topic 'pgi-ninja-fortran'
4087d0ae PGI: Add support for Fortran with the Ninja generator
-rw-r--r--Modules/Compiler/PGI-Fortran.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Compiler/PGI-Fortran.cmake b/Modules/Compiler/PGI-Fortran.cmake
index 3765079..4783424 100644
--- a/Modules/Compiler/PGI-Fortran.cmake
+++ b/Modules/Compiler/PGI-Fortran.cmake
@@ -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")