summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-29 18:26:01 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-29 18:26:01 (GMT)
commitb8e2c42f36812939ed9fe03d6d527d8e6289df6e (patch)
tree27bb20f1fa278b5f84a5f75e3b2c3a95226e9833
parent37cf805d3ea6e007f9eafb68937708b8beb23672 (diff)
parent8d782adbce56d3e81dd361b5ef6e9ff781a6d436 (diff)
downloadCMake-b8e2c42f36812939ed9fe03d6d527d8e6289df6e.zip
CMake-b8e2c42f36812939ed9fe03d6d527d8e6289df6e.tar.gz
CMake-b8e2c42f36812939ed9fe03d6d527d8e6289df6e.tar.bz2
Merge branch 'flang-preprocess-source' into release-3.13
Merge-request: !2545
-rw-r--r--Modules/Compiler/Flang-Fortran.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Flang-Fortran.cmake b/Modules/Compiler/Flang-Fortran.cmake
index a1051f4..d522739 100644
--- a/Modules/Compiler/Flang-Fortran.cmake
+++ b/Modules/Compiler/Flang-Fortran.cmake
@@ -2,7 +2,7 @@ include(Compiler/Clang)
__compiler_clang(Fortran)
set(CMAKE_Fortran_PREPROCESS_SOURCE
- "<CMAKE_Fortran_COMPILER> -cpp <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> -o <PREPROCESSED_SOURCE>")
+ "<CMAKE_Fortran_COMPILER> -cpp <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-ffixed-form")
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-ffree-form")