diff options
author | makise-homura <akemi_homura@kurisa.ch> | 2023-02-16 00:55:31 (GMT) |
---|---|---|
committer | makise-homura <akemi_homura@kurisa.ch> | 2023-02-16 00:55:31 (GMT) |
commit | 9f9d121ddb75e480660976555791e2cf3b61b1c9 (patch) | |
tree | 2d996a137c4b69b708046a70169c9e857ca63dce /Modules/Platform/Linux-LCC-Fortran.cmake | |
parent | ea5f1f33fd5986a7858fa064cd747e09d372c63d (diff) | |
download | CMake-9f9d121ddb75e480660976555791e2cf3b61b1c9.zip CMake-9f9d121ddb75e480660976555791e2cf3b61b1c9.tar.gz CMake-9f9d121ddb75e480660976555791e2cf3b61b1c9.tar.bz2 |
LCC: Disable Fortran preprocessor testing if unsupported
LCC < 1.24 has no way to disable integrated Fortran preprocessor,
and it can't produce preprocessed files explicitly. So we
disable all functionality (and therefore tests) related to it.
Diffstat (limited to 'Modules/Platform/Linux-LCC-Fortran.cmake')
-rw-r--r-- | Modules/Platform/Linux-LCC-Fortran.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-LCC-Fortran.cmake b/Modules/Platform/Linux-LCC-Fortran.cmake index 166c06a..308c771 100644 --- a/Modules/Platform/Linux-LCC-Fortran.cmake +++ b/Modules/Platform/Linux-LCC-Fortran.cmake @@ -4,4 +4,6 @@ if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL "1.26.03") set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-lgfortran") elseif (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL "1.24.01") set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-llfortran") +else() + unset(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE) endif() |