diff --git a/modules/find/FindPASTIX.cmake b/modules/find/FindPASTIX.cmake index 23eefaa438ea104fc1cc12000f7fe823e8701fcc..ef01c3f11c6a2ed3245946e883b9f2eb86246e6c 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}})