vcpkg/ports/discordcoreapi/portfile.cmake
RealTimeChris c5509d79e7
[DiscordCoreAPI] Update to version 2022-07-05 (#25564)
* Updating version info.

* Updating version info.

* Updating version info.

* Updating version info.

* Updating version info.

* Updating version info.

* Updating version info.

* Updating version info.

* Updating version info.

* Updating version info.

* Updating version info.

* Updating version info.

* Updating version info.

* Updating version info.
2022-07-05 11:55:37 -07:00

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 b2e9be0f8f4475b0907dbe07d98b22e40ba8c933
SHA512 979b4fbaf325b060607dd5af7300b2815b2d9df8ccdbf825cf70261276af4882aafaee09ddb4eb060c0f7ec8cccd23f28d8b8c69cf7eb7b267af164698a2bcfa
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
)