Skip to content

Commit bf15cfa

Browse files
authored
Allow finding LAPACK++ and BLAS++ (#389)
For LAPACK++ and BLAS++ only the availability of the lapackpp and blaspp target is checked. This patch adds the possibility to find the package as part of the `ga-linalg.cmake` routine to discover the targets from a CMake config file or similar.
1 parent 18178cb commit bf15cfa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/ga-linalg.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ if (ENABLE_BLAS)
178178
endif()
179179
include(FetchContent)
180180
set( gpu_backend "none" CACHE STRING "GPU backend to use" FORCE)
181+
find_package(blaspp QUIET)
181182
if(NOT TARGET blaspp)
182183
if(ENABLE_OFFLINE_BUILD)
183184
FetchContent_Declare(
@@ -195,6 +196,7 @@ if (ENABLE_BLAS)
195196
FetchContent_MakeAvailable( blaspp )
196197
endif()
197198

199+
find_package(lapackpp QUIET)
198200
if(NOT TARGET lapackpp)
199201
if(ENABLE_OFFLINE_BUILD)
200202
FetchContent_Declare(

0 commit comments

Comments
 (0)