mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
Absoft: Enable FortranCInterface check in Fortran test
Exclude module symbol mangling because Absoft mangles with ".in." so the symbols cannot be referenced from C.
This commit is contained in:
parent
d7b376b3a7
commit
8bd3e51a1c
@ -34,7 +34,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|MIPSpro|PathScale")
|
||||
if(NOT CMAKE_Fortran_COMPILER_ID MATCHES "SunPro|MIPSpro|PathScale|Absoft")
|
||||
set(module_expected 1)
|
||||
endif()
|
||||
if(FortranCInterface_MODULE_FOUND OR module_expected)
|
||||
@ -108,6 +108,9 @@ if(("${CMAKE_Fortran_COMPILER_ID}" MATCHES "Intel")
|
||||
)
|
||||
set(COMPATABLE_COMPILERS TRUE)
|
||||
endif()
|
||||
if("${CMAKE_Fortran_COMPILER_ID}:${CMAKE_C_COMPILER_ID}" MATCHES "Absoft:GNU")
|
||||
set(COMPATABLE_COMPILERS TRUE)
|
||||
endif()
|
||||
if(COMPATABLE_COMPILERS
|
||||
OR ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "${CMAKE_C_COMPILER_ID}" ))
|
||||
test_fortran_c_interface_module()
|
||||
|
Loading…
Reference in New Issue
Block a user