2019-03-15 02:19:45 +08:00
|
|
|
if (TARGET_TRIPLET MATCHES "^x86")
|
|
|
|
message(WARNING "The CRoaring authors recommend users of this lib against using a 32-bit build.")
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO RoaringBitmap/CRoaring
|
2023-02-13 23:37:58 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
|
|
|
|
SHA512 c51e426c13045f45b907bc2801fcb01a2bb0620054ad5c2bb113fe486f77e292c85f29348e7d4d1c61f0263845be9403b754f418d81c293c5e2fb9e5407386b0
|
2019-03-15 02:19:45 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ROARING_BUILD_STATIC)
|
|
|
|
|
2022-09-20 02:45:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
2019-03-15 02:19:45 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-04-06 00:38:26 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2019-03-15 02:19:45 +08:00
|
|
|
OPTIONS
|
|
|
|
-DROARING_BUILD_STATIC=${ROARING_BUILD_STATIC}
|
|
|
|
-DENABLE_ROARING_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2022-09-20 02:45:39 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-03-15 02:19:45 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-09-20 02:45:39 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-03-15 02:19:45 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
2022-10-01 05:38:26 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2019-03-15 02:19:45 +08:00
|
|
|
# Handle copyright
|
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|