aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/lapack-reference/cmake-config.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/lapack-reference/cmake-config.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/lapack-reference/cmake-config.patch')
-rw-r--r--vcpkg/ports/lapack-reference/cmake-config.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/ports/lapack-reference/cmake-config.patch b/vcpkg/ports/lapack-reference/cmake-config.patch
new file mode 100644
index 0000000..b2c656a
--- /dev/null
+++ b/vcpkg/ports/lapack-reference/cmake-config.patch
@@ -0,0 +1,21 @@
+diff --git a/CMAKE/lapack-config-install.cmake.in b/CMAKE/lapack-config-install.cmake.in
+index 7760960..102eb92 100644
+--- a/CMAKE/lapack-config-install.cmake.in
++++ b/CMAKE/lapack-config-install.cmake.in
+@@ -12,8 +12,14 @@ unset(_LAPACK_TARGET)
+ set(LAPACK_Fortran_COMPILER_ID "@CMAKE_Fortran_COMPILER_ID@")
+
+ # Report the blas and lapack raw or imported libraries.
+-set(LAPACK_blas_LIBRARIES "@BLAS_LIBRARIES@")
++if("@USE_OPTIMIZED_BLAS@")
++ include(CMakeFindDependencyMacro)
++ find_dependency(BLAS) # For current build type
++ set(LAPACK_blas_LIBRARIES "${BLAS_LIBRARIES}")
++else()
++ set(LAPACK_blas_LIBRARIES "@BLASLIB@") # target carries link libraries
++endif()
+ set(LAPACK_lapack_LIBRARIES "@LAPACK_LIBRARIES@")
+-set(LAPACK_LIBRARIES ${LAPACK_blas_LIBRARIES} ${LAPACK_lapack_LIBRARIES})
++set(LAPACK_LIBRARIES ${LAPACK_lapack_LIBRARIES}) # target carries link libraries
+
+ unset(_LAPACK_SELF_DIR)