mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
0bc3f04da6
Co-authored-by: Alexander Neumann <you@example.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
25 lines
931 B
CMake
25 lines
931 B
CMake
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
|
|
|
# This block should be kept in sync with the port 'blas'
|
|
if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS)
|
|
# Use Apple's accelerate framework where available
|
|
set(BLA_VENDOR Apple)
|
|
set(requires "")
|
|
set(libs "-framework Accelerate")
|
|
set(cflags "-framework Accelerate")
|
|
elseif(VCPKG_TARGET_IS_UWP
|
|
OR (VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE MATCHES "arm")
|
|
OR NOT VCPKG_TARGET_IS_WINDOWS
|
|
OR NOT (VCPKG_LIBRARY_LINKAGE STREQUAL "static"))
|
|
set(BLA_VENDOR OpenBLAS)
|
|
set(requires openblas)
|
|
else()
|
|
set(BLA_VENDOR Generic)
|
|
set(requires "cblas-reference")
|
|
endif()
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/cblas.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/cblas.pc" @ONLY)
|
|
if(NOT VCPKG_BUILD_TYPE)
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/cblas.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/cblas.pc" @ONLY)
|
|
endif()
|