diff options
author | Tim Gallagher <tim.gallagher@gatech.edu> | 2014-11-05 18:43:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-10 15:24:53 (GMT) |
commit | b6b37e303786e48c305cb83011ce5fa6cf71e359 (patch) | |
tree | ceb9d6e82793804a1adc0f079de8317dd0f37695 /Modules/Platform/IRIX.cmake | |
parent | 0842b08463d14d6c7e27dcb4cda278805cce6e5f (diff) | |
download | CMake-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/Platform/IRIX.cmake')
-rw-r--r-- | Modules/Platform/IRIX.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/Platform/IRIX.cmake b/Modules/Platform/IRIX.cmake index 03e98cc..12b0f37 100644 --- a/Modules/Platform/IRIX.cmake +++ b/Modules/Platform/IRIX.cmake @@ -31,6 +31,14 @@ if(NOT CMAKE_COMPILER_IS_GNUCXX) ) endif() +if(NOT CMAKE_COMPILER_IS_GNUG77) + set (CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE "<CMAKE_Fortran_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>") + set (CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE + "<CMAKE_Fortran_COMPILER> <FLAGS> -S <SOURCE>" + "mv `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.s <ASSEMBLY_SOURCE>" + ) +endif() + # Initialize C link type selection flags. These flags are used when # building a shared library, shared module, or executable that links # to other libraries to select whether to use the static or shared |