diff options
author | Brad King <brad.king@kitware.com> | 2018-04-02 15:07:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-02 15:07:55 (GMT) |
commit | 445d6781e6f5e31cc4841da9adebbde4d7d39dca (patch) | |
tree | cdc0a9ba3cfd25e3df22cbeb74596d0c4854a140 /Modules/CMakeFortranCompiler.cmake.in | |
parent | e42fcb117fa1a8d063023bb39db96da93159ee40 (diff) | |
download | CMake-445d6781e6f5e31cc4841da9adebbde4d7d39dca.zip CMake-445d6781e6f5e31cc4841da9adebbde4d7d39dca.tar.gz CMake-445d6781e6f5e31cc4841da9adebbde4d7d39dca.tar.bz2 |
Fortran: Add support for .fpp extensions
Compilers such as `gfortran` recognize `.fpp` extensions to mean a
Fortran source on which the preprocessor should run.
Fixes: #17869
Diffstat (limited to 'Modules/CMakeFortranCompiler.cmake.in')
-rw-r--r-- | Modules/CMakeFortranCompiler.cmake.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeFortranCompiler.cmake.in b/Modules/CMakeFortranCompiler.cmake.in index 2e34cbb..9b951fc 100644 --- a/Modules/CMakeFortranCompiler.cmake.in +++ b/Modules/CMakeFortranCompiler.cmake.in @@ -31,7 +31,7 @@ if(CMAKE_COMPILER_IS_MINGW) set(MINGW 1) endif() set(CMAKE_Fortran_COMPILER_ID_RUN 1) -set(CMAKE_Fortran_SOURCE_FILE_EXTENSIONS f;F;f77;F77;f90;F90;for;For;FOR;f95;F95) +set(CMAKE_Fortran_SOURCE_FILE_EXTENSIONS f;F;fpp;FPP;f77;F77;f90;F90;for;For;FOR;f95;F95) set(CMAKE_Fortran_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) set(CMAKE_Fortran_LINKER_PREFERENCE 20) if(UNIX) |