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-11-12 07:20:37 +08:00
|
|
|
REF a377fb84c29624e91b6b2451018f3aa3abec1c4f # 0.21.9
|
|
|
|
SHA512 627eaefef3526b59e9fdc6b0aebca1a47bac2adf382bc8381115c7f9fbf04a1496a46490985b16b5855166f03a873a7b00ea1f062131fd49d5adb545e5c8ecf5
|
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)
|