mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-17 10:08:12 +08:00
4ec4584501
Updating the necessary files.
28 lines
840 B
CMake
28 lines
840 B
CMake
if(VCPKG_TARGET_IS_LINUX)
|
|
message(WARNING "DiscordCoreAPI only supports g++ 11 on linux.")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO RealTimeChris/DiscordCoreAPI
|
|
REF "v${VERSION}"
|
|
SHA512 4fcffa23be80bd7cf13ded5b8a78d7b94832d1d80996d315c5ee333b7a4006903f4d9f7ec1046f01658887349e5bf29406fe2eb5c979578b6bdad188798f4173
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(NO_PREFIX_CORRECTION)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.md")
|