2019-01-28 03:29:46 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO QuantStack/xtensor-blas
|
2019-05-06 14:19:09 +08:00
|
|
|
REF 0.16.1
|
|
|
|
SHA512 3bdbd48b74d7be0b9f4ad2d435789e266b3cc1e043bbe73739978678bd1ca81504a688cdd80c03667305d210d299127be9939333c9bd0ac27dff0423ccb4861d
|
2019-01-28 03:29:46 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
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})
|