From dfb60ed9fc7d0813e41fbde05115d6d2360b5989 Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Fri, 13 Jul 2018 10:58:50 +0200
Subject: [PATCH] update pastix 6 libs list

---
 modules/find/FindPASTIX.cmake | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/modules/find/FindPASTIX.cmake b/modules/find/FindPASTIX.cmake
index 23eefaa..ef01c3f 100644
--- a/modules/find/FindPASTIX.cmake
+++ b/modules/find/FindPASTIX.cmake
@@ -538,7 +538,13 @@ if( (NOT PKG_CONFIG_EXECUTABLE) OR (PKG_CONFIG_EXECUTABLE AND NOT PASTIX_FOUND)
 
   # create list of libs to find
   set(PASTIX_libs_to_find_v5 "pastix_murge;pastix")
-  set(PASTIX_libs_to_find_v6 "pastix;pastix_kernels;pastix_spm;pastix_bcsc")
+  set(PASTIX_libs_to_find_v6 "pastix;pastix_kernels")
+  if(PASTIX_LOOK_FOR_PARSEC)
+    list(INSERT 1 PASTIX_libs_to_find_v6 "pastix_parsec")
+  endif()
+  if(PASTIX_LOOK_FOR_STARPU)
+    list(INSERT 1 PASTIX_libs_to_find_v6 "pastix_starpu")
+  endif()
   foreach(v 5 6)
     set(V_FOUND TRUE)
     set(PASTIX_libs_to_find ${PASTIX_libs_to_find_v${v}})
-- 
GitLab