2022-09-14 01:53:48 +02:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO configcat/cpp-sdk
|
2023-03-15 18:30:16 +01:00
|
|
|
REF "v${VERSION}"
|
2024-07-10 15:55:31 +02:00
|
|
|
SHA512 3d14c84b1e682cf63951e6560fb0367b2bf9897e20367e047743ff532a194f71b2b05eff66fa8611dc3f5396ec8f281c64147511e0f8ac448bfd0db7fdc82571
|
2022-09-14 01:53:48 +02:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-12-14 08:27:11 +01:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
INVERTED_FEATURES
|
|
|
|
network CONFIGCAT_USE_EXTERNAL_NETWORK_ADAPTER
|
2024-07-10 15:55:31 +02:00
|
|
|
sha CONFIGCAT_USE_EXTERNAL_SHA
|
2023-12-14 08:27:11 +01:00
|
|
|
)
|
|
|
|
|
2022-09-14 01:53:48 +02:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DCONFIGCAT_BUILD_TESTS=OFF
|
2023-12-14 08:27:11 +01:00
|
|
|
${FEATURE_OPTIONS}
|
2022-09-14 01:53:48 +02:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/configcat")
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|