mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 15:37:49 +08:00
877eaea999
* [configcat] Update to version 3.1.0 * [configcat] Update to version 3.1.0 * [configcat] Update to version 3.1.0 * [configcat] Update to version 3.1.1 * [configcat] Update to version 3.1.1
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 2d2c456c978babc3223783ec0e08ac7e73294703db4f932da12ce7e4b5163510689c4b996311543fd68acffc613a15a776767b144a4089eb12566a52af8017b7
|
|
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)
|