mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-17 02:55:28 +08:00
6d710fceeb
* entt: updated port files * entt: updated version files * entt: added license field to vcpkg.json * entt: updated version files
36 lines
976 B
CMake
36 lines
976 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.10.0
|
|
SHA512 b123ac1909f4062312d872d823846f2476eb8911c40673cdceb6a1480b38c3fb3b86f843173247d0765870cbe87bf1d10f87e076fa2623fa20327743d1d7061b
|
|
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)
|