mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 09:53:01 +08:00
[magic-enum] Fix export config.cmake issue (#9007)
* [magic-enum] Fix export config.cmake issue * Update
This commit is contained in:
parent
90a40c6658
commit
8c17d3c790
@ -1,4 +1,4 @@
|
||||
Source: magic-enum
|
||||
Version: 0.6.3
|
||||
Version: 0.6.3-1
|
||||
Description: Header-only C++17 library provides static reflection for enums, work with any enum type without any macro or boilerplate code.
|
||||
Homepage: https://github.com/Neargye/magic_enum
|
||||
|
@ -1,7 +1,5 @@
|
||||
# header-only library
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Neargye/magic_enum
|
||||
@ -20,12 +18,9 @@ vcpkg_configure_cmake(
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/magic_enum)
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/magic_enum TARGET_PATH share/magic_enum)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
||||
|
||||
# Handle copyright
|
||||
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/magic-enum/copyright COPYONLY)
|
||||
|
||||
# CMake integration test
|
||||
vcpkg_test_cmake(PACKAGE_NAME magic-enum)
|
||||
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
||||
|
Loading…
Reference in New Issue
Block a user