mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 07:19:08 +08:00
311ad449f8
* [configcat] Update to version 2.0.0 * [configcat] Update to version 2.0.0 * [configcat] Update to version 2.0.0 * [configcat] Update to version 2.0.0 * Update ports/configcat/portfile.cmake Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com> * [configcat] Update to version 2.0.0 --------- Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>
26 lines
766 B
CMake
26 lines
766 B
CMake
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO configcat/cpp-sdk
|
|
REF "v${VERSION}"
|
|
SHA512 44e320079e92f7051e0924b4e02616e384abb89feadd1ce34823442fd195e195dea7503c4556d37ae157363ee1762421fe1d3f8e2cce70fff23e618128047acd
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DCONFIGCAT_BUILD_TESTS=OFF
|
|
)
|
|
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)
|