aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/xtensor/portfile.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/xtensor/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/xtensor/portfile.cmake')
-rw-r--r--vcpkg/ports/xtensor/portfile.cmake40
1 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/xtensor/portfile.cmake b/vcpkg/ports/xtensor/portfile.cmake
new file mode 100644
index 0000000..9217d65
--- /dev/null
+++ b/vcpkg/ports/xtensor/portfile.cmake
@@ -0,0 +1,40 @@
+# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO xtensor-stack/xtensor
+ REF "${VERSION}"
+ SHA512 52616a61f9c74c9a37daea5615edb210ff9ef636620266c04ef3e145a067ed685c36febdee4d225ff7c4865e45384e92034a0e7bf9d255727aca7100bc45143c
+ HEAD_REF master
+ PATCHES
+ fix-find-tbb-and-install-destination.patch
+ fix-find-xsimd.patch
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ xsimd XTENSOR_USE_XSIMD
+ tbb XTENSOR_USE_TBB
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ 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
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")