From 2b6fbde7cef7023936fb27392fe4cec0e754c269 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Mon, 13 Nov 2023 22:18:10 -0500 Subject: [PATCH] Tweaks to get magic_enum working --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 34c4ca5e..f1f0c582 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 # $<$:ASSERT_USE_MAGIC_ENUM>