mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 03:37:50 +08:00
38 lines
1021 B
CMake
38 lines
1021 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO jupp0r/prometheus-cpp
|
|
REF c9ffcdda9086ffd9e1283ea7a0276d831f3c8a8d # v1.1.0
|
|
SHA512 9e113d50ce5e7bf83891e66312e36abd496224cd11e7b2f89e9aba634fb3ddfba803397042900e761cf16551cb6dc5425badc0f9f886e058f865ff4ae704cf4d
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
compression ENABLE_COMPRESSION
|
|
pull ENABLE_PULL
|
|
push ENABLE_PUSH
|
|
tests ENABLE_TESTING
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DUSE_THIRDPARTY_LIBRARIES=OFF # use vcpkg packages
|
|
-DGENERATE_PKGCONFIG=OFF
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/prometheus-cpp")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
# Handle copyright
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|