Skip to content

Commit

Permalink
Fix LAPACK dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristopherson committed Jan 22, 2025
1 parent 584e0cd commit 51c9ec7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ find_package(BLAS)
find_package(LAPACK)
add_subdirectory(dependencies)

if (NOT BLAS_FOUND OR NOT LAPACK_FOUND)
message(STATUS "BLAS/LAPACK could not be found. A reference version will be employed.")
include(FetchContent)
FetchContent_Declare(
lapack
GIT_REPOSITORY "https://github.com/Reference-LAPACK/lapack"
)
FetchContent_MakeAvailable(lapack)
set(BLAS_LIBRARIES blas)
set(LAPACK_LIBRARIES lapack)
endif()

# Source
add_subdirectory(src)
add_fortran_library(
Expand Down

0 comments on commit 51c9ec7

Please sign in to comment.