2019-01-28 03:29:46 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-01-07 04:57:25 +08:00
|
|
|
REPO xtensor-stack/xtensor-blas
|
2022-08-13 06:43:39 +08:00
|
|
|
REF 66ab0fa7cd53d0b914f89d4d451576a9240ea457 # 0.20.0
|
|
|
|
SHA512 c95aa1388577ca74933c81e56322c9dae9c4d6b0493be60d5a3bfbaeaf769f6005542b5b0a24a6c6374007499113c2920870b01c4f5ea712ad78c2468964b6db
|
2019-01-28 03:29:46 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-11-05 03:58:21 +08:00
|
|
|
vcpkg_cmake_configure(
|
2019-01-28 03:29:46 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-02-02 15:38:44 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2019-01-28 03:29:46 +08:00
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2021-11-05 03:58:21 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-01-28 03:29:46 +08:00
|
|
|
|
2021-11-05 03:58:21 +08:00
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/xtensor-blas/xblas_config_cling.hpp")
|
2019-01-28 03:29:46 +08:00
|
|
|
|
2021-11-05 03:58:21 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-01-28 03:29:46 +08:00
|
|
|
|
2021-11-05 03:58:21 +08:00
|
|
|
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)
|