diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/lapack/vcpkg-cmake-wrapper.cmake.in | |
Diffstat (limited to 'vcpkg/ports/lapack/vcpkg-cmake-wrapper.cmake.in')
| -rw-r--r-- | vcpkg/ports/lapack/vcpkg-cmake-wrapper.cmake.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/lapack/vcpkg-cmake-wrapper.cmake.in b/vcpkg/ports/lapack/vcpkg-cmake-wrapper.cmake.in new file mode 100644 index 0000000..64d7d98 --- /dev/null +++ b/vcpkg/ports/lapack/vcpkg-cmake-wrapper.cmake.in @@ -0,0 +1,15 @@ +# BLA_VENDOR and BLA_STATIC are documented at: +# * https://cmake.org/cmake/help/latest/module/FindBLAS.html +# * https://cmake.org/cmake/help/latest/module/FindLAPACK.html + +_find_package(BLAS) # Find BLAS before setting BLA_VENDOR (Will set/unset BLA_VENDOR itself) +set(BLA_VENDOR @BLA_VENDOR@) +if(APPLE AND "@BLA_STATIC@" AND CMAKE_VERSION VERSION_LESS "3.17.0") + # avoid `-Wl,--(start|end)-group` and wrong lib suffix + set(BLA_STATIC 0) +else() + set(BLA_STATIC @BLA_STATIC@) +endif() +_find_package(${ARGS}) +unset(BLA_VENDOR) +unset(BLA_STATIC) |