mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 04:11:37 +08:00
f894a2f39a
* Update `entt/portfile.cmake` to support the new `experimental` feature. * Added the `experimental` feature on `entt/vcpkg.json`. * Small fix on `entt/vcpkg.json`. * Update vcpkg.json * New branch * Fixup * (Hopefully) fixed entt version * Require specifying `--head` for the feature * update version * update version * [entt] add experimental feature * update version * update vcpkg.json * update version Co-authored-by: Jonliu1993 <13720414433@163.com>
37 lines
1.0 KiB
CMake
37 lines
1.0 KiB
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 2d5a3f24aa6dc38ed0c4eee9d4d625586d8e921e #v3.8.0
|
|
SHA512 36b7be2550be5a919548e5c91db218ed9b062804d4f43073d6fc6b432fa2d358b5d36098490359ca2392370b2bf1b99d20e564504eaac619f5cd7f9612d91e2e
|
|
HEAD_REF master
|
|
)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DENTT_BUILD_TESTING=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
|
else()
|
|
vcpkg_fixup_cmake_targets(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)
|