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
|
2023-05-11 02:11:05 +08:00
|
|
|
REF "${VERSION}"
|
2024-01-27 01:41:37 +08:00
|
|
|
SHA512 d8ff5bdb2af66db5ba84cceb2e5138728b7e689b81d5aab904c4f5dfbebdcde67b8ecf38e69750edb85e30a6f45ce70ff618ca3d1a76f38a2b4013a6a6320de6
|
2019-01-27 08:44:25 +08:00
|
|
|
HEAD_REF master
|
2023-05-11 02:11:05 +08:00
|
|
|
PATCHES
|
|
|
|
fix-find-tbb-and-install-destination.patch
|
2023-08-30 03:30:17 +08:00
|
|
|
fix-find-xsimd.patch
|
2019-01-27 08:44:25 +08:00
|
|
|
)
|
|
|
|
|
2019-08-14 11:13:55 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-06-11 07:02:29 +08:00
|
|
|
FEATURES
|
|
|
|
xsimd XTENSOR_USE_XSIMD
|
|
|
|
tbb XTENSOR_USE_TBB
|
2019-06-29 01:17:39 +08:00
|
|
|
)
|
2019-01-27 08:44:25 +08:00
|
|
|
|
2022-03-02 05:57:27 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-01-27 08:44:25 +08:00
|
|
|
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
|
|
|
)
|
|
|
|
|
2022-03-02 05:57:27 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-01-27 08:44:25 +08:00
|
|
|
|
2022-03-02 05:57:27 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-01-27 08:44:25 +08:00
|
|
|
|
2022-03-02 05:57:27 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2019-01-27 08:44:25 +08:00
|
|
|
|
2023-05-11 02:11:05 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|