2019-10-08 13:31:48 +05:00
|
|
|
# header-only library
|
|
|
|
|
2019-06-07 20:08:41 +01:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-10-08 13:31:48 +05:00
|
|
|
REPO Neargye/magic_enum
|
2021-02-04 00:43:45 +05:00
|
|
|
REF v0.7.2
|
|
|
|
SHA512 53991ccc890548a81a410e274ec2deaf0f153ec15d154ac802452235dc5b913b56da64fddc6aeed9882206fd2abe7250423d36f5e72bdba54b622b8dfdfa9dad
|
2019-10-02 13:54:38 -07:00
|
|
|
HEAD_REF master
|
2019-06-07 20:08:41 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-10-08 13:31:48 +05:00
|
|
|
PREFER_NINJA
|
2019-06-07 20:08:41 +01:00
|
|
|
OPTIONS
|
2019-10-08 13:31:48 +05:00
|
|
|
-DMAGIC_ENUM_OPT_BUILD_EXAMPLES=OFF
|
|
|
|
-DMAGIC_ENUM_OPT_BUILD_TESTS=OFF
|
2020-10-15 22:43:37 +03:00
|
|
|
-DMAGIC_ENUM_OPT_INSTALL=ON
|
2019-06-07 20:08:41 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-10-08 13:31:48 +05:00
|
|
|
|
2019-11-21 17:01:17 -08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/magic_enum TARGET_PATH share/magic_enum)
|
2019-06-07 20:08:41 +01:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
2019-10-08 13:31:48 +05:00
|
|
|
|
|
|
|
# Handle copyright
|
2019-11-21 17:01:17 -08:00
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|