Commit af6d116a authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

Merge branch 'fix_find_TMG_C' into 'master'

Fix TMG: added C function detection when required (e.g. with pastix@6)

See merge request !9
parents c3f87654 875c772d
...@@ -251,7 +251,15 @@ if (LAPACK_FOUND) ...@@ -251,7 +251,15 @@ if (LAPACK_FOUND)
endif (NOT _LANGUAGES_ MATCHES Fortran) endif (NOT _LANGUAGES_ MATCHES Fortran)
mark_as_advanced(TMG_WORKS) mark_as_advanced(TMG_WORKS)
endif() endif()
if (TMG_WORKS)
unset(TMG_WORKS CACHE)
if (_LANGUAGES_ MATCHES C)
check_function_exists(LAPACKE_zlatms_work TMG_WORKS)
endif (_LANGUAGES_ MATCHES C)
mark_as_advanced(TMG_WORKS)
unset(TMG_WORKS_C CACHE)
endif()
if(TMG_WORKS) if(TMG_WORKS)
# save link with dependencies # save link with dependencies
set(TMG_LIBRARIES_DEP "${REQUIRED_LIBS}") set(TMG_LIBRARIES_DEP "${REQUIRED_LIBS}")
...@@ -263,7 +271,7 @@ if (LAPACK_FOUND) ...@@ -263,7 +271,7 @@ if (LAPACK_FOUND)
list(REMOVE_DUPLICATES TMG_LINKER_FLAGS) list(REMOVE_DUPLICATES TMG_LINKER_FLAGS)
else() else()
if(NOT TMG_FIND_QUIETLY) if(NOT TMG_FIND_QUIETLY)
message(STATUS "Looking for tmg: test of dlarnv and dlagsy with tmg and lapack libraries fails") message(STATUS "Looking for tmg: test of dlarnv and dlagsy or LAPACKE_zlatms_work with tmg and lapack libraries fails")
message(STATUS "CMAKE_REQUIRED_LIBRARIES: ${CMAKE_REQUIRED_LIBRARIES}") message(STATUS "CMAKE_REQUIRED_LIBRARIES: ${CMAKE_REQUIRED_LIBRARIES}")
message(STATUS "CMAKE_REQUIRED_INCLUDES: ${CMAKE_REQUIRED_INCLUDES}") message(STATUS "CMAKE_REQUIRED_INCLUDES: ${CMAKE_REQUIRED_INCLUDES}")
message(STATUS "Check in CMakeFiles/CMakeError.log to figure out why it fails") message(STATUS "Check in CMakeFiles/CMakeError.log to figure out why it fails")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment