aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/spatial-hash/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/spatial-hash/portfile.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/spatial-hash/portfile.cmake')
-rw-r--r--vcpkg/ports/spatial-hash/portfile.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/spatial-hash/portfile.cmake b/vcpkg/ports/spatial-hash/portfile.cmake
new file mode 100644
index 0000000..9aa62b8
--- /dev/null
+++ b/vcpkg/ports/spatial-hash/portfile.cmake
@@ -0,0 +1,28 @@
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO MIT-SPARK/Spatial-Hash
+ REF bf592f26d84beca96e3ddc295ee1cf5b7341dee5
+ SHA512 c6e0c0475f2ca9bd9b21b227874202a12191496a446e44c493d6a181636912a342c56a8742cb5597a164f108bce74ec9534e224db4fa916c76930b232c82895f
+ PATCHES
+ compatible-vcpkg-cmake.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DSPATIAL_HASH_BUILD_TESTS=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME spatial_hash
+ CONFIG_PATH lib/cmake/spatial_hash
+)
+vcpkg_copy_pdbs()
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")