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.
This commit is contained in:
makise-homura
2023-02-16 03:53:14 +03:00
parent 5434547678
commit ea5f1f33fd

View File

@@ -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)