mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-08 13:25:26 +08:00
fcfda3c78c
* Updating version file. * Updating version file. * Updates! * Updates! * Updating the version file. * Updates! * Updates! * Updating version file. * Updating version file. * Updating version file. * Updating version file. * Updating the version file. * Updating the version file. * Updating the version file. * Updating the version file. * Updating the version file. * Updating the version file. * Updating the version file. * Updating the version file. * Updating the version file. * Updating the version file. * Updating the version file. * Updating the version file.
32 lines
909 B
CMake
32 lines
909 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 0b96738e12149b0acf203b476c95994bdf4a7c31
|
|
SHA512 9662048fd72faa7ff57e036c770ebff23f3b9d8b6d1f17ad114fa92de48913247fea72fd0a4afee2808f7ff25c02a354f85ebcfa76b2d19bcdef969a434b58af
|
|
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()
|
|
|
|
file(
|
|
INSTALL "${SOURCE_PATH}/License.md"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
RENAME copyright
|
|
)
|