From 9a65514249524dbce4f886c345dc75b5785bf6cd Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Wed, 25 Mar 2026 13:54:08 +0100 Subject: [PATCH] Allow finding LAPACK++ and BLAS++ 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. --- cmake/ga-linalg.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/ga-linalg.cmake b/cmake/ga-linalg.cmake index 7ad1ecb1d..14e700284 100644 --- a/cmake/ga-linalg.cmake +++ b/cmake/ga-linalg.cmake @@ -178,6 +178,7 @@ if (ENABLE_BLAS) endif() include(FetchContent) set( gpu_backend "none" CACHE STRING "GPU backend to use" FORCE) + find_package(blaspp QUIET) if(NOT TARGET blaspp) if(ENABLE_OFFLINE_BUILD) FetchContent_Declare( @@ -195,6 +196,7 @@ if (ENABLE_BLAS) FetchContent_MakeAvailable( blaspp ) endif() + find_package(lapackpp QUIET) if(NOT TARGET lapackpp) if(ENABLE_OFFLINE_BUILD) FetchContent_Declare(