summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/HP-Fortran.cmake
diff options
context:
space:
mode:
authorTim Gallagher <tim.gallagher@gatech.edu>2014-11-05 18:43:06 (GMT)
committerBrad King <brad.king@kitware.com>2014-11-10 15:24:53 (GMT)
commitb6b37e303786e48c305cb83011ce5fa6cf71e359 (patch)
treeceb9d6e82793804a1adc0f079de8317dd0f37695 /Modules/Compiler/HP-Fortran.cmake
parent0842b08463d14d6c7e27dcb4cda278805cce6e5f (diff)
downloadCMake-b6b37e303786e48c305cb83011ce5fa6cf71e359.zip
CMake-b6b37e303786e48c305cb83011ce5fa6cf71e359.tar.gz
CMake-b6b37e303786e48c305cb83011ce5fa6cf71e359.tar.bz2
Makefile: Add assembly and preprocessed targets for Fortran
Extend the FortranOnly test to cover "make <src>.i" targets.
Diffstat (limited to 'Modules/Compiler/HP-Fortran.cmake')
-rw-r--r--Modules/Compiler/HP-Fortran.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Compiler/HP-Fortran.cmake b/Modules/Compiler/HP-Fortran.cmake
index cc56b46..ad821ab 100644
--- a/Modules/Compiler/HP-Fortran.cmake
+++ b/Modules/Compiler/HP-Fortran.cmake
@@ -1,3 +1,6 @@
set(CMAKE_Fortran_VERBOSE_FLAG "-v")
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "+source=fixed")
set(CMAKE_Fortran_FORMAT_FREE_FLAG "+source=free")
+
+set(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE "<CMAKE_Fortran_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
+set(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE "<CMAKE_Fortran_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")