mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 12:49:00 +08:00
188ff7a102
* [magic-enum] Update to v0.8.0 * x-add-version * fix deprecated * fix review * fix version * Update ports/magic-enum/portfile.cmake Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com> * Update ports/magic-enum/portfile.cmake Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com> * Update versions/m-/magic-enum.json Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com> * fix review * overwrite-version * fix cmake * fix onfig_fixup * overwrite-version * delete extra blank line * overwrite-version Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com>
28 lines
854 B
CMake
28 lines
854 B
CMake
# header-only library
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Neargye/magic_enum
|
|
REF v0.8.0
|
|
SHA512 097260c234a1b716d26b537cd80a8d3eca255422e8dce46183708a27b1d4ad1d81c6be05f1b7d300db3362eafa243cccc39c9d12f1bcbfdb0d7755701a222808
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DMAGIC_ENUM_OPT_ENABLE_NONASCII=OFF
|
|
-DMAGIC_ENUM_OPT_BUILD_EXAMPLES=OFF
|
|
-DMAGIC_ENUM_OPT_BUILD_TESTS=OFF
|
|
-DMAGIC_ENUM_OPT_INSTALL=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/magic_enum PACKAGE_NAME magic_enum)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
# Handle copyright
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|