summarylogtreecommitdiffstats
path: root/0001-fastercap-use-pkg-config-to-find-BLAS.patch
blob: 7d1b0f08b0e058e40a07425b5a6d5cdec0b59064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 5440caed97586e65a8a82ef2a47bb69aca96516a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Torleif=20Sk=C3=A5r?= <torleif.skaar@gmail.com>
Date: Mon, 5 Jan 2026 15:55:58 +0100
Subject: [PATCH] fastercap: use pkg-config to find BLAS

---
 CMakeLists.txt | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b9ab939..1b89246 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,12 +51,8 @@ if (APPLE)
     endif()
 endif()
 
-find_package(BLAS REQUIRED)
-if ("${BLAS_INCLUDE_DIRS}" STREQUAL "")
-# fallback for CI/CD environment
-   SET(BLAS_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/../../deps/blas/include)
-endif()
-message(STATUS "BLAS found, Includes: ${BLAS_INCLUDE_DIRS}")
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(BLAS REQUIRED blas cblas)
 include_directories(${BLAS_INCLUDE_DIRS})
 set(EXTRA_LIBS ${EXTRA_LIBS} ${BLAS_LIBRARIES})
 
-- 
2.52.0