From 35914aa9a2a862d61e391bc40a1620e11df64ad3 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 2 Mar 2025 22:54:59 +0100 Subject: [PATCH] Expose the option to build without LAPACKE to ccmake --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e99bd208..f8b63041a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,8 @@ include(CMakePackageConfigHelpers) ####### option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS)" OFF) +option(BUILD_WITHOUT_LAPACKE "Do not build the C interface to LAPACK)" OFF) + option(BUILD_LAPACK_DEPRECATED "When building LAPACK, include also some older, deprecated routines" ON) set(LAPACK_STRLEN "" CACHE STRING "When building LAPACK, use this type (e.g. \"int\") for character lengths (defaults to size_t)") @@ -81,6 +83,10 @@ if(BUILD_WITHOUT_LAPACK) set(NO_LAPACKE 1) endif() +if (BUILD_WITHOUT_LAPACKE) + set(NO_LAPACKE 1) +endif() + if(BUILD_WITHOUT_CBLAS) set(NO_CBLAS 1) endif()