2020-06-11 17:13:53 +08:00
|
|
|
# header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO osmcode/libosmium
|
2022-08-16 01:48:44 +08:00
|
|
|
REF v2.18.0
|
|
|
|
SHA512 bfe4d5b08e284abb21280205437c62d260948c8585cc8d10f0c3496fd29df1ff6c6bc436283207f292d6a8af911835ebef64403c3fde2a262b55fde5296c13ce
|
2020-06-11 17:13:53 +08:00
|
|
|
)
|
2021-09-04 05:14:39 +08:00
|
|
|
set(BOOST_ROOT "${CURRENT_INSTALLED_DIR}")
|
2020-06-11 17:13:53 +08:00
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
2020-06-11 17:13:53 +08:00
|
|
|
)
|
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-06-11 17:13:53 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-09-04 05:14:39 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2020-06-11 17:13:53 +08:00
|
|
|
|
2021-09-04 05:14:39 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|