From 04fbdf3f202e12451a174e3527cc26e09ce9ef41 Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Mon, 23 Apr 2018 16:14:42 +0200
Subject: [PATCH] lapacke depends on tmg

---
 coreblas/compute/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/coreblas/compute/CMakeLists.txt b/coreblas/compute/CMakeLists.txt
index 996a64ffa..afa4460cc 100644
--- a/coreblas/compute/CMakeLists.txt
+++ b/coreblas/compute/CMakeLists.txt
@@ -119,9 +119,11 @@ set_property(TARGET coreblas PROPERTY LINKER_LANGUAGE Fortran)
 set_property(TARGET coreblas PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
 
 target_link_libraries(coreblas
-  ${TMG_LIBRARIES_DEP}
   ${LAPACKE_LIBRARIES_DEP}
   ${CBLAS_LIBRARIES_DEP}
+  ${TMG_LIBRARIES_DEP}
+  ${LAPACK_LIBRARIES_DEP}
+  ${BLAS_LIBRARIES}
   )
 
 # Installation
-- 
GitLab