mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:39:00 +08:00
b69ec652ae
Fixes: ~~~ CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. ~~~
16 lines
552 B
CMake
16 lines
552 B
CMake
# 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)
|