[Cmake-commits] CMake branch, next, updated. v3.7.1-1798-geb64b2e

Brad King brad.king at kitware.com
Fri Dec 16 08:37:53 EST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  eb64b2e2b41fe619e643045056a24bd6d6b81b87 (commit)
       via  4087d0ae85cd9835296a82e0d5a63db0feabcb93 (commit)
      from  f1297c25f0edd121295893950b501acc3905715f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=eb64b2e2b41fe619e643045056a24bd6d6b81b87
commit eb64b2e2b41fe619e643045056a24bd6d6b81b87
Merge: f1297c2 4087d0a
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Fri Dec 16 08:37:52 2016 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri Dec 16 08:37:52 2016 -0500

    Merge topic 'pgi-ninja-fortran' into next
    
    4087d0ae PGI: Add support for Fortran with the Ninja generator


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4087d0ae85cd9835296a82e0d5a63db0feabcb93
commit 4087d0ae85cd9835296a82e0d5a63db0feabcb93
Author:     Daniel Carrera <dcarrera at gmail.com>
AuthorDate: Fri Dec 16 03:10:21 2016 +0100
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Fri Dec 16 08:33:21 2016 -0500

    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.

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")
 

-----------------------------------------------------------------------

Summary of changes:
 Modules/Compiler/PGI-Fortran.cmake |    3 +++
 1 file changed, 3 insertions(+)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list