From 4f8eab44b349a8b46a8caa7c8e03e9295f460ddb Mon Sep 17 00:00:00 2001
From: PRUVOST Florent <florent.pruvost@inria.fr>
Date: Tue, 21 Nov 2017 14:04:40 +0100
Subject: [PATCH] Revert "Merge branch 'fix_find_TMG_C' into 'master'"

This reverts merge request !9
---
 modules/find/FindTMG.cmake | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/modules/find/FindTMG.cmake b/modules/find/FindTMG.cmake
index 860a5c6..745cb45 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")
-- 
GitLab