mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:23:02 +08:00
[xtensor-blas] Add new port (#5240)
This accomplishes #5140 by making the linalg namespace works.
This commit is contained in:
parent
b3a450578b
commit
9e9a05b377
4
ports/xtensor-blas/CONTROL
Normal file
4
ports/xtensor-blas/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: xtensor-blas
|
||||
Version: 0.15.1
|
||||
Description: BLAS extension to xtensor
|
||||
Build-Depends: xtensor
|
37
ports/xtensor-blas/portfile.cmake
Normal file
37
ports/xtensor-blas/portfile.cmake
Normal file
@ -0,0 +1,37 @@
|
||||
# header-only library
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO QuantStack/xtensor-blas
|
||||
REF 0.15.1
|
||||
SHA512 c80def1cc106efec1ee4c33f3724b6b63af4c826e45e2a5a8dc066d368867b3a1d909ae490e09c615c2119b3aad3ef5b739fe86925d0229a69329ddee09c3d66
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_RELEASE -DCXXBLAS_DEBUG=OFF
|
||||
OPTIONS_DEBUG -DCXXBLAS_DEBUG=ON
|
||||
OPTIONS
|
||||
-DXTENSOR_USE_FLENS_BLAS=OFF
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_BENCHMARK=OFF
|
||||
-DDOWNLOAD_GTEST=OFF
|
||||
-DDOWNLOAD_GBENCHMARK=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xflens/cxxblas/netlib)
|
||||
|
||||
# Handle copyright
|
||||
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
||||
|
||||
# CMake integration test
|
||||
vcpkg_test_cmake(PACKAGE_NAME ${PORT})
|
Loading…
Reference in New Issue
Block a user