vcpkg/ports/roaring/portfile.cmake
Li Wu bded093da1
upgrade roaring to 0.7.1 (#26802)
Co-authored-by: Li Wu <wuli@yanhuangdata.com>
2022-09-19 11:45:39 -07:00

33 lines
984 B
CMake

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
REF v0.7.1
SHA512 1d49da4e5b5ed0726feaf3608488e24f13c31358d1a72c7d0086fb6210313f73164745e0d1b616e8930073bbe259f7e1ac09fc97473b659694248f627c762f02
HEAD_REF master
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ROARING_BUILD_STATIC)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DROARING_BUILD_STATIC=${ROARING_BUILD_STATIC}
-DENABLE_ROARING_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)