summaryrefslogtreecommitdiffstats
path: root/Tests/Fortran
diff options
context:
space:
mode:
authormakise-homura <akemi_homura@kurisa.ch>2023-02-16 00:53:14 (GMT)
committermakise-homura <akemi_homura@kurisa.ch>2023-02-16 00:53:14 (GMT)
commitea5f1f33fd5986a7858fa064cd747e09d372c63d (patch)
tree51cd420c149cd19595e8758452a55b2624f39a7d /Tests/Fortran
parent5434547678223c79c18429f7b1c75d0634f60185 (diff)
downloadCMake-ea5f1f33fd5986a7858fa064cd747e09d372c63d.zip
CMake-ea5f1f33fd5986a7858fa064cd747e09d372c63d.tar.gz
CMake-ea5f1f33fd5986a7858fa064cd747e09d372c63d.tar.bz2
LCC: Disable implicit testing of FortranCInterface
LCC < 1.24 has unsupported mangling scheme: it changes 'sub' neither to 'sub' nor to 'SUB', but to 'Sub'. So we should explicitly check if FortranCInterface works in the case of LCC.
Diffstat (limited to 'Tests/Fortran')
-rw-r--r--Tests/Fortran/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt
index 0fede25..30ab16b 100644
--- a/Tests/Fortran/CMakeLists.txt
+++ b/Tests/Fortran/CMakeLists.txt
@@ -49,7 +49,7 @@ function(test_fortran_c_interface_module)
FortranCInterface_VERIFY()
FortranCInterface_VERIFY(CXX)
if(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
- if(NOT CMAKE_Fortran_COMPILER_ID MATCHES "SunPro|PathScale|Absoft|Fujitsu")
+ if(NOT CMAKE_Fortran_COMPILER_ID MATCHES "SunPro|PathScale|Absoft|Fujitsu|LCC")
set(module_expected 1)
endif()
if(FortranCInterface_MODULE_FOUND OR module_expected)