vcpkg/ports/discordcoreapi/portfile.cmake
RealTimeChris 9429391e9f
[DiscordCoreAPI] Fixing a certificate location issue. (#24204)
* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Removing patch file.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updating version database.

* Updated build system.

* Updated build system.

* Updated build system.

* Updated build system.

* Updated build system.

* Updated build system.

* Updating version database.

* Updating version database.

* Updating version database.
2022-04-18 15:43:59 -07:00

36 lines
957 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 c5e7efee991f4dcff428ca21c2e157949e784a78
SHA512 5f42864f8375c87542550ff1f05e761d75a02de5810a4ca1f1b4893894d9be11a21915ff16771e3233103c4fce3ce8734359baacd5f5051d719e387a225343dd
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(NO_PREFIX_CORRECTION)
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
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
)