From 073fe7307666b8b360650f633349f5de50333509 Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Mon, 14 May 2018 11:22:44 +0200 Subject: [PATCH] Remove the required on cblas/lapacke packages --- CMakeLists.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d09034c..fdcd443e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,18 +114,16 @@ include(CheckSystem) # SPM depends on Lapacke and CBLAS #--------------------------------- -find_package(LAPACKE REQUIRED) -if(LAPACKE_FOUND) - message(STATUS "lapacke: ${LAPACKE_INCLUDE_DIRS}") - include_directories(${LAPACKE_INCLUDE_DIRS}) -endif() - -find_package(CBLAS REQUIRED) +find_package(CBLAS) # Should be REQUIRED for BLAS sequential only if(CBLAS_FOUND) - message(STATUS "cblas: ${CBLAS_INCLUDE_DIRS}") include_directories(${CBLAS_INCLUDE_DIRS}) endif() +find_package(LAPACKE) # Should be also REQUIRED +if(LAPACKE_FOUND) + include_directories(${LAPACKE_INCLUDE_DIRS}) +endif() + ### Store dependencies not handled with pkg-config set( DEPS_LIBRARIES ${LAPACKE_LIBRARIES_DEP} -- GitLab