Browse Source

Merge pull request #5166 from martin-frbg/issue5158

Expose the option to build without LAPACKE to ccmake
tags/v0.3.30
Martin Kroeker GitHub 7 months ago
parent
commit
5f200dca54
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      CMakeLists.txt

+ 6
- 0
CMakeLists.txt View File

@@ -21,6 +21,8 @@ include(CMakePackageConfigHelpers)
####### #######
option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS)" OFF) 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) 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)") 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) set(NO_LAPACKE 1)
endif() endif()


if (BUILD_WITHOUT_LAPACKE)
set(NO_LAPACKE 1)
endif()

if(BUILD_WITHOUT_CBLAS) if(BUILD_WITHOUT_CBLAS)
set(NO_CBLAS 1) set(NO_CBLAS 1)
endif() endif()


Loading…
Cancel
Save