From ed8c028f7fc30cc2327410b8051c99f8eb1f58cb Mon Sep 17 00:00:00 2001 From: Alessio Zanga Date: Sat, 5 Mar 2022 00:07:01 +0100 Subject: [PATCH 1/2] Remove MSVC limitation --- CMakeLists.txt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab9f3af80..981130e22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,15 +17,7 @@ include(GNUInstallDirs) include(CMakePackageConfigHelpers) -if(MSVC AND NOT DEFINED NOFORTRAN) - set(NOFORTRAN ON) -endif() - ####### -if(MSVC) - option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS)" ON) -endif() - option(BUILD_WITHOUT_CBLAS "Do not build the C interface (CBLAS) to the BLAS functions" OFF) option(DYNAMIC_ARCH "Include support for multiple CPU targets, with automatic selection at runtime (x86/x86_64, aarch64 or ppc only)" OFF) From ed2871cb71ee0ce2e86f6ed62bf2ebd10a1f3180 Mon Sep 17 00:00:00 2001 From: AlessioZanga Date: Sat, 5 Mar 2022 23:35:29 +0100 Subject: [PATCH 2/2] Change `BUILD_WITHOUT_LAPACK` to `OFF` by default --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 981130e22..2b99a7722 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,8 @@ include(GNUInstallDirs) include(CMakePackageConfigHelpers) ####### +option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS)" OFF) + option(BUILD_WITHOUT_CBLAS "Do not build the C interface (CBLAS) to the BLAS functions" OFF) option(DYNAMIC_ARCH "Include support for multiple CPU targets, with automatic selection at runtime (x86/x86_64, aarch64 or ppc only)" OFF)