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