2019-01-27 08:44:25 +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
|
2020-02-11 08:08:57 +08:00
|
|
|
REF 31acec1e90bbea6d4bc17af0710a123bd5da6689 # 0.21.3
|
|
|
|
SHA512 007059e20e6feddc281f322a6907279e9a2935f5e28b7c50dc1b0f1d80ad303e84abf9759d9c50ab0916fdf75a5861b4bfc5dac8dd21de751808c420a161d0ef
|
2019-01-27 08:44:25 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2019-08-14 11:13:55 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2019-06-29 01:17:39 +08:00
|
|
|
xsimd XTENSOR_USE_XSIMD
|
|
|
|
tbb XTENSOR_USE_TBB
|
|
|
|
)
|
2019-01-27 08:44:25 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DXTENSOR_ENABLE_ASSERT=OFF
|
|
|
|
-DXTENSOR_CHECK_DIMENSION=OFF
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_BENCHMARK=OFF
|
|
|
|
-DDOWNLOAD_GTEST=OFF
|
|
|
|
-DDOWNLOAD_GBENCHMARK=OFF
|
|
|
|
-DDEFAULT_COLUMN_MAJOR=OFF
|
|
|
|
-DDISABLE_VS2017=OFF
|
2019-06-29 01:17:39 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2019-01-27 08:44:25 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
|
2020-01-07 04:57:25 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|