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