diff --git a/modules/find/FindTMG.cmake b/modules/find/FindTMG.cmake
index 860a5c64cb28af7c2d2b8e67e77ff9e5294e355d..745cb4516eb5c8db5835ca8872e213255848754f 100644
--- a/modules/find/FindTMG.cmake
+++ b/modules/find/FindTMG.cmake
@@ -251,15 +251,7 @@ if (LAPACK_FOUND)
 	endif (NOT _LANGUAGES_ MATCHES Fortran)
 	mark_as_advanced(TMG_WORKS)
       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)
 	# save link with dependencies
 	set(TMG_LIBRARIES_DEP "${REQUIRED_LIBS}")
@@ -271,7 +263,7 @@ if (LAPACK_FOUND)
 	list(REMOVE_DUPLICATES TMG_LINKER_FLAGS)
       else()
 	if(NOT TMG_FIND_QUIETLY)
-	  message(STATUS "Looking for tmg: test of dlarnv and dlagsy or LAPACKE_zlatms_work with tmg and lapack libraries fails")
+	  message(STATUS "Looking for tmg: test of dlarnv and dlagsy with tmg and lapack libraries fails")
 	  message(STATUS "CMAKE_REQUIRED_LIBRARIES: ${CMAKE_REQUIRED_LIBRARIES}")
 	  message(STATUS "CMAKE_REQUIRED_INCLUDES: ${CMAKE_REQUIRED_INCLUDES}")
 	  message(STATUS "Check in CMakeFiles/CMakeError.log to figure out why it fails")