summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-07 13:13:44 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-05-07 13:13:51 (GMT)
commitfd7293f36d5402f66c242fbcda25679608a195d9 (patch)
tree7cd1fd600c52665cf92b92ef32e5f77d5d20d2a4
parent41dc5c7ceff8eb4960e5dab2996f90cee45e06de (diff)
parent284d12a426879a61adc61fb210e35b01f1a1e1ad (diff)
downloadCMake-fd7293f36d5402f66c242fbcda25679608a195d9.zip
CMake-fd7293f36d5402f66c242fbcda25679608a195d9.tar.gz
CMake-fd7293f36d5402f66c242fbcda25679608a195d9.tar.bz2
Merge topic 'Fujitsu-Fortran-Ninja'
284d12a426 Fujitsu: Make explicit Fortran preprocessing under Ninja more robust Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6080
-rw-r--r--Modules/Compiler/Fujitsu-Fortran.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Fujitsu-Fortran.cmake b/Modules/Compiler/Fujitsu-Fortran.cmake
index 0f687bc..face2d6 100644
--- a/Modules/Compiler/Fujitsu-Fortran.cmake
+++ b/Modules/Compiler/Fujitsu-Fortran.cmake
@@ -5,7 +5,7 @@ set(CMAKE_Fortran_SUBMODULE_SEP ".")
set(CMAKE_Fortran_SUBMODULE_EXT ".smod")
set(CMAKE_Fortran_PREPROCESS_SOURCE
- "<CMAKE_Fortran_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -Cpp -E <SOURCE> > <PREPROCESSED_SOURCE>")
+ "<CMAKE_Fortran_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -Cpp -P <SOURCE> -o <PREPROCESSED_SOURCE>")
set(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_ON "-Cpp")
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-Fixed")