Skip to content

Commit

Permalink
Tweaks to get magic_enum working
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Nov 14, 2023
1 parent c4ad149 commit 2b6fbde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,13 @@ if(ASSERT_USE_MAGIC_ENUM)
if(ASSERT_USE_EXTERNAL_MAGIC_ENUM)
find_package(magic_enum REQUIRED)
else()
set(MAGIC_ENUM_OPT_INSTALL ON)
FetchContent_Declare(magic_enum
GIT_REPOSITORY "${ASSERT_MAGIC_ENUM_REPO}"
GIT_TAG "${ASSERT_MAGIC_ENUM_TAG}")
FetchContent_MakeAvailable(magic_enum)
endif()
target_link_libraries(${target_name} PRIVATE magic_enum::magic_enum)
target_link_libraries(${target_name} PUBLIC magic_enum::magic_enum)
target_compile_definitions(
${target_name} PUBLIC
# $<$<BOOL:"${ASSERT_USE_MAGIC_ENUM}">:ASSERT_USE_MAGIC_ENUM>
Expand Down

0 comments on commit 2b6fbde

Please sign in to comment.