vcpkg/ports/discordcoreapi/portfile.cmake
RealTimeChris fcfda3c78c
[DiscordCoreAPI] Update to version 2022-10-30 (#27561)
* 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.
2022-10-31 17:16:01 -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 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
)