mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 00:19:00 +08:00
09007f767c
* [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * Update ports/configcat/portfile.cmake Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port * [configcat] Add new port Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
26 lines
759 B
CMake
26 lines
759 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 v0.1.0
|
|
SHA512 56dee6fe7e54020610c273325d74184ddca7271b434d3527f35eabbdf657bf1c2c84913f4018397ad178f275772fe1207245239237efa95e5692c4845e9a6e7b
|
|
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)
|