diff options
author | Chuck Atkins <chuck.atkins@kitware.com> | 2020-12-22 20:07:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-03-30 14:32:53 (GMT) |
commit | 3c867cff4a98bb198211e3d9f8494fbb478a29e4 (patch) | |
tree | e8fb2a3671d292ff21430df67e95000f20a63bce /Modules/Compiler/Fujitsu-Fortran.cmake | |
parent | d5ab6a53edef5f259f9b9446943dcc5113898b51 (diff) | |
download | CMake-3c867cff4a98bb198211e3d9f8494fbb478a29e4.zip CMake-3c867cff4a98bb198211e3d9f8494fbb478a29e4.tar.gz CMake-3c867cff4a98bb198211e3d9f8494fbb478a29e4.tar.bz2 |
Fujitsu: Add support for the Fujitsu compiler in Trad mode
Co-Author: Yuichiro Utsumi <utsumi.yuichiro@jp.fujitsu.com>
Diffstat (limited to 'Modules/Compiler/Fujitsu-Fortran.cmake')
-rw-r--r-- | Modules/Compiler/Fujitsu-Fortran.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Modules/Compiler/Fujitsu-Fortran.cmake b/Modules/Compiler/Fujitsu-Fortran.cmake new file mode 100644 index 0000000..0f687bc --- /dev/null +++ b/Modules/Compiler/Fujitsu-Fortran.cmake @@ -0,0 +1,16 @@ +include(Compiler/Fujitsu) +__compiler_fujitsu(Fortran) + +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>") +set(CMAKE_Fortran_COMPILE_OPTIONS_PREPROCESS_ON "-Cpp") + +set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-Fixed") +set(CMAKE_Fortran_FORMAT_FREE_FLAG "-Free") + +string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT "") + +set(CMAKE_Fortran_MODDIR_FLAG "-M ") |