Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristopherson committed Jan 22, 2025
1 parent 8b22b82 commit dd64c34
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ 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.")
add_subdirectory(lapack)
endif()

# Remove later - just a sanity check for now
if (NOT BLAS_FOUND)
message(STATUS "BLAS could not be found.")
message(STATUS "Still no BLAS")
endif()
if (NOT LAPACK_FOUND)
message(STATUS "LAPACK could not be found.")
message(STATUS "Still no LAPACK")
endif()

# Source
Expand All @@ -44,8 +50,6 @@ target_link_libraries(
)
link_library(${PROJECT_NAME} ${ferror_LIBRARY} ${ferror_INCLUDE_DIR})

print_all_variables()

# Testing
option(BUILD_TESTING "Build tests")
include(CTest)
Expand Down
4 changes: 0 additions & 4 deletions dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Get the macros and functions we'll need
include("${PROJECT_SOURCE_DIR}/cmake/helper.cmake")
include(FetchContent)

# Get FERROR
add_subdirectory(ferror)
set(ferror_LIBRARY ${ferror_LIBRARY} PARENT_SCOPE)
Expand Down
8 changes: 8 additions & 0 deletions lapack/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include(FetchContent)

# Fetch the proper content
FetchContent_Declare(
lapack
GIT_REPOSITORY "https://github.com/Reference-LAPACK/lapack"
)
FetchContent_MakeAvailable(lapack)

0 comments on commit dd64c34

Please sign in to comment.