2020-12-30 22:36:19 -08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Ultimaker/libArcus
|
2024-06-21 22:39:50 +02:00
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 452c541360d74a8f58ab1b20df59efd36756812a9ecd09804ba16877956fb240d367bd968271a9c010496598ef0b459f62aa287553d4ba3fdb4cd2742c25553f
|
|
|
|
HEAD_REF main
|
2021-09-22 13:09:55 -07:00
|
|
|
PATCHES
|
|
|
|
0001-fix-protobuf-deprecated.patch
|
2024-06-21 22:39:50 +02:00
|
|
|
0002-protobuf-version.patch
|
2020-12-30 22:36:19 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ENABLE_STATIC)
|
|
|
|
|
2021-09-08 12:41:40 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-12-30 22:36:19 -08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_PYTHON=OFF
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_STATIC=${ENABLE_STATIC}
|
|
|
|
)
|
|
|
|
|
2021-09-08 12:41:40 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-12-30 22:36:19 -08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-08 12:41:40 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME Arcus CONFIG_PATH lib/cmake/Arcus)
|
2020-12-30 22:36:19 -08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2024-06-21 22:39:50 +02:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|