[magic-enum] Fix export config.cmake issue (#9007)

* [magic-enum] Fix export config.cmake issue

* Update
This commit is contained in:
NancyLi1013 2019-11-21 17:01:17 -08:00 committed by Robert Schumacher
parent 90a40c6658
commit 8c17d3c790
2 changed files with 3 additions and 8 deletions

View File

@ -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

View File

@ -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)