2019-08-20 23:41:32 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libspatialindex/libspatialindex
|
2024-10-22 07:17:37 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 a508a9ed4019641bdaaa53533505531f3db440b046a9c7d9f78ed480293200c51796c2d826a6bb9b4f9543d60bb0fef9e4c885ec3f09326cfa4d2fb81c1593aa
|
2019-08-20 23:41:32 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-12-20 03:31:17 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
WINDOWS_USE_MSBUILD
|
2021-05-27 06:02:26 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCMAKE_DEBUG_POSTFIX=d
|
|
|
|
-DSIDX_BUILD_TESTS:BOOL=OFF
|
2019-08-20 23:41:32 +08:00
|
|
|
)
|
|
|
|
|
2022-12-20 03:31:17 +08:00
|
|
|
vcpkg_cmake_install()
|
2024-10-22 07:17:37 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-08-20 23:41:32 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
#Debug
|
2022-12-20 03:31:17 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-08-20 23:41:32 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-12-20 03:31:17 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|