2019-02-26 03:09:41 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO efficient/libcuckoo
|
2022-07-06 02:56:31 +08:00
|
|
|
REF ea8c36c65bf9cf83aaf6b0db971248c6ae3686cf
|
|
|
|
SHA512 5c36ebf6047afb3fa980049dc2e38b8e34443d40cff7ba9b7ee1fa8b78ff3dd92b2d0a346667a71eec6d0bfc917b3080c883146f97681f20f71ce618eac3f37f
|
2019-02-26 03:09:41 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-07-06 02:56:31 +08:00
|
|
|
# header-only library
|
|
|
|
set(VCPKG_BUILD_TYPE release)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-02-26 03:09:41 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DBUILD_STRESS_TESTS=OFF
|
|
|
|
-DBUILD_UNIT_TESTS=OFF
|
|
|
|
-DBUILD_UNIVERSAL_BENCHMARK=OFF
|
|
|
|
)
|
|
|
|
|
2022-07-06 02:56:31 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-02-26 03:09:41 +08:00
|
|
|
|
2022-07-06 02:56:31 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/${PORT})
|
2019-02-26 03:09:41 +08:00
|
|
|
|
2022-07-06 02:56:31 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|