vcpkg/ports/entt/portfile.cmake
Daniel Marshall c3d2f29edb
[entt] Update to 3.9.0 (#22147)
* [entt] Update to 3.9.0

* Update version files

* Migrate to new functions

* Update version
2021-12-21 23:20:36 -05:00

36 lines
975 B
CMake

if ("experimental" IN_LIST FEATURES)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO skypjack/entt
HEAD_REF experimental
)
else()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO skypjack/entt
REF v3.9.0
SHA512 b318ea06deb69350a00b3e824462a22fe443f4c778d0934857b68e43f0e6f1fe30c281889c14e3456067629e62a2bbb54491458c43d52ef543b2db8903133922
HEAD_REF master
)
endif()
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DENTT_BUILD_TESTING=OFF
)
vcpkg_cmake_install()
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
else()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/EnTT/cmake)
endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)