mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
6d2c971458
Fixes https://github.com/microsoft/vcpkg/issues/38009 Remove the statement renaming liblapack.lib. - [X] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ ] ~~SHA512s are updated for each updated download.~~ - [ ] ~~The "supports" clause reflects platforms that may be fixed by this new version.~~ - [ ] ~~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~~ - [ ] ~~Any patches that are no longer applied are deleted from the port's directory.~~ - [X] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [X] Only one version is added to each modified port's versions file. Usage test pass with following triplets: ``` x64-windows ``` --------- Co-authored-by: Jim wang (BEYONDSOFT CONSULTING INC) <v-wangjim@microsoft.com>
32 lines
1.0 KiB
CMake
32 lines
1.0 KiB
CMake
message(STATUS "Using VCPKG FindLAPACK from package 'lapack-reference'")
|
|
set(LAPACK_PREV_MODULE_PATH "${CMAKE_MODULE_PATH}")
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
|
|
|
list(REMOVE_ITEM ARGS "NO_MODULE")
|
|
list(REMOVE_ITEM ARGS "CONFIG")
|
|
list(REMOVE_ITEM ARGS "MODULE")
|
|
|
|
if(@USE_OPTIMIZED_BLAS@)
|
|
find_package(BLAS)
|
|
endif()
|
|
|
|
# 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
|
|
|
|
set(BLA_VENDOR @BLA_VENDOR@)
|
|
set(BLA_STATIC @BLA_STATIC@)
|
|
_find_package(${ARGS})
|
|
unset(BLA_VENDOR)
|
|
unset(BLA_STATIC)
|
|
|
|
if(@CBLAS@)
|
|
include(SelectLibraryConfigurations)
|
|
find_library(CBLAS_LIBRARY_RELEASE NAMES libcblas PATHS "${CURRENT_PACKAGES_DIR}/lib" NO_DEFAULT_PATH)
|
|
find_library(CBLAS_LIBRARY_DEBUG NAMES libcblas PATHS "${CURRENT_PACKAGES_DIR}/debug/lib" NO_DEFAULT_PATH)
|
|
select_library_configurations(CBLAS)
|
|
set(LAPACK_LIBRARIES ${LAPACK_LIBRARIES})
|
|
endif()
|
|
|
|
set(CMAKE_MODULE_PATH "${LAPACK_PREV_MODULE_PATH}")
|