diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e99bd208f..f8b63041ad 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()