From b6fe5e9fd1f3c0ddbadf5b31ed32a18ff6b53642 Mon Sep 17 00:00:00 2001 From: Izaak Beekman Date: Tue, 22 Jan 2019 11:51:11 -0500 Subject: [PATCH] On macOS use system LAPACK (no static libs) --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3cbdd82c4..34495bb32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -280,7 +280,9 @@ endif() #------------------------------ # Find Linear Algebra Libraries #------------------------------ -set(BLA_STATIC ON) +if(NOT APPLE) + set(BLA_STATIC ON) +endif() find_package(BLAS REQUIRED) find_package(LAPACK REQUIRED) add_definitions(-DHAVE_LAPACK)