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
|
2022-08-06 10:47:19 +04:00
|
|
|
REF v0.8.1
|
|
|
|
SHA512 97b14ddfa2fec4b582f4658cea96f61510b3eb1f367d770a642136ffbaf7e5d87e6a8c950f7ac6af47cc605899d0ff8e2b9c71a19a28ad1dfaa724f003339edc
|
2019-10-02 13:54:38 -07:00
|
|
|
HEAD_REF master
|
2019-06-07 20:08:41 +01:00
|
|
|
)
|
|
|
|
|
2022-05-12 03:46:53 +04:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-06-07 20:08:41 +01:00
|
|
|
OPTIONS
|
2022-05-12 03:46:53 +04:00
|
|
|
-DMAGIC_ENUM_OPT_ENABLE_NONASCII=OFF
|
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
|
|
|
)
|
|
|
|
|
2022-05-12 03:46:53 +04:00
|
|
|
vcpkg_cmake_install()
|
2019-10-08 13:31:48 +05:00
|
|
|
|
2022-05-12 03:46:53 +04:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/magic_enum PACKAGE_NAME magic_enum)
|
2019-06-07 20:08:41 +01:00
|
|
|
|
2022-05-12 03:46:53 +04:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2019-10-08 13:31:48 +05:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-05-12 03:46:53 +04:00
|
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|