diff options
author | Brad King <brad.king@kitware.com> | 2011-01-24 16:21:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-05-20 13:00:21 (GMT) |
commit | 8bd3e51a1cff4785c1dbdab33dd8b2fc286c116a (patch) | |
tree | c68bc5b902a35afdeb7fb707451298ae7a215510 | |
parent | d7b376b3a734c2356a1e5138cf0ae52112612e0c (diff) | |
download | CMake-8bd3e51a1cff4785c1dbdab33dd8b2fc286c116a.zip CMake-8bd3e51a1cff4785c1dbdab33dd8b2fc286c116a.tar.gz CMake-8bd3e51a1cff4785c1dbdab33dd8b2fc286c116a.tar.bz2 |
Absoft: Enable FortranCInterface check in Fortran test
Exclude module symbol mangling because Absoft mangles with ".in." so the
symbols cannot be referenced from C.
-rw-r--r-- | Tests/Fortran/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt index 04563ef..90598d6 100644 --- a/Tests/Fortran/CMakeLists.txt +++ b/Tests/Fortran/CMakeLists.txt @@ -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() |