Skip to content

Commit

Permalink
magic_enum: add version 0.9.7 (#25976)
Browse files Browse the repository at this point in the history
* magic_enum: add version 0.9.7

* support 0.9.7 or later in test_package
  • Loading branch information
toge authored Nov 19, 2024
1 parent 2dca3a6 commit 58e22c8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/magic_enum/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"0.9.7":
url: "https://github.com/Neargye/magic_enum/archive/v0.9.7.tar.gz"
sha256: "b403d3dad4ef542fdc3024fa37d3a6cedb4ad33c72e31b6d9bab89dcaf69edf7"
"0.9.6":
url: "https://github.com/Neargye/magic_enum/archive/v0.9.6.tar.gz"
sha256: "fcda8295256a2084f1f98a63b3d2c66b3d7140eea008e1ef94ea015b2f6d3034"
Expand Down
3 changes: 3 additions & 0 deletions recipes/magic_enum/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ find_package(magic_enum REQUIRED CONFIG)
add_executable(${PROJECT_NAME} test_package.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE magic_enum::magic_enum)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
if(magic_enum_VERSION VERSION_LESS "0.9.7")
target_compile_definitions(${PROJECT_NAME} PRIVATE MAGIC_ENUM_TOP_LEVEL_HEADER)
endif()
4 changes: 4 additions & 0 deletions recipes/magic_enum/all/test_package/test_package.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#ifdef MAGIC_ENUM_TOP_LEVEL_HEADER
#include <magic_enum.hpp>
#else
#include <magic_enum/magic_enum.hpp>
#endif
#include <cstdlib>
#include <string>

Expand Down
2 changes: 2 additions & 0 deletions recipes/magic_enum/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"0.9.7":
folder: all
"0.9.6":
folder: all
"0.9.5":
Expand Down

0 comments on commit 58e22c8

Please sign in to comment.