diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-11-21 17:01:17 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-11-21 17:01:17 -0800 |
| commit | 8c17d3c7909fb41ce4c208f105eb0442caeeff7c (patch) | |
| tree | b753d94ece9621000db71fbdeef8b41fd2e97af5 | |
| parent | 90a40c6658396d0dd8ad980239d722f337543eac (diff) | |
| download | vcpkg-8c17d3c7909fb41ce4c208f105eb0442caeeff7c.tar.gz vcpkg-8c17d3c7909fb41ce4c208f105eb0442caeeff7c.zip | |
[magic-enum] Fix export config.cmake issue (#9007)
* [magic-enum] Fix export config.cmake issue
* Update
| -rw-r--r-- | ports/magic-enum/CONTROL | 2 | ||||
| -rw-r--r-- | ports/magic-enum/portfile.cmake | 9 |
2 files changed, 3 insertions, 8 deletions
diff --git a/ports/magic-enum/CONTROL b/ports/magic-enum/CONTROL index 27bb0ec89..070b202fd 100644 --- a/ports/magic-enum/CONTROL +++ b/ports/magic-enum/CONTROL @@ -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
diff --git a/ports/magic-enum/portfile.cmake b/ports/magic-enum/portfile.cmake index 72e9540dd..3a8fca1c2 100644 --- a/ports/magic-enum/portfile.cmake +++ b/ports/magic-enum/portfile.cmake @@ -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)
|
