[xtensor-blas] no absolute path (#21098)

This commit is contained in:
autoantwort 2021-11-04 20:58:21 +01:00 committed by GitHub
parent 586cbbc449
commit e5a3f57653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 10 deletions

View File

@ -3,14 +3,13 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO xtensor-stack/xtensor-blas
REF 2876b041a2759f10dfde13ab3a2fc09578ae4b40 # 0.17.2
REF 2876b041a2759f10dfde13ab3a2fc09578ae4b40 # 0.17.2
SHA512 64c78d093f24fc15715bc7dfa486cfb1342a6752ea497f43553d031fc8be30718d01157e5b6412c516e6ce2be9045a89963d912e60f4eb7431675331b8ed6f90
HEAD_REF master
)
vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE
OPTIONS_RELEASE -DCXXBLAS_DEBUG=OFF
OPTIONS_DEBUG -DCXXBLAS_DEBUG=ON
@ -22,11 +21,13 @@ vcpkg_configure_cmake(
-DDOWNLOAD_GBENCHMARK=OFF
)
vcpkg_install_cmake()
vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/xtensor-blas/xblas_config_cling.hpp")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xflens/cxxblas/netlib)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/xflens/cxxblas/netlib")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,10 +1,18 @@
{
"name": "xtensor-blas",
"version-string": "0.17.2",
"port-version": 1,
"port-version": 2,
"description": "BLAS extension to xtensor",
"homepage": "https://github.com/xtensor-stack/xtensor-blas",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"xtensor"
]
}

View File

@ -7230,7 +7230,7 @@
},
"xtensor-blas": {
"baseline": "0.17.2",
"port-version": 1
"port-version": 2
},
"xtensor-fftw": {
"baseline": "2019-11-30",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6524a2462dd339878f2e32de8962576a15097a5e",
"version-string": "0.17.2",
"port-version": 2
},
{
"git-tree": "d046baeae79d8ce5a5c535ad3c60fe4e65db7366",
"version-string": "0.17.2",