From 442b8aa7672be9d972184404005f443e945d2034 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Sun, 11 Sep 2022 18:44:15 +0300 Subject: [PATCH] Fix Eluna logging by defining ENABLE_ELUNA (#179) The definition should be included in all projects or every project that uses it --- src/mangosd/CMakeLists.txt | 5 +++++ src/shared/CMakeLists.txt | 1 + 2 files changed, 6 insertions(+) diff --git a/src/mangosd/CMakeLists.txt b/src/mangosd/CMakeLists.txt index 6e3c5b63..0128bde0 100644 --- a/src/mangosd/CMakeLists.txt +++ b/src/mangosd/CMakeLists.txt @@ -66,6 +66,11 @@ target_include_directories(mangosd ${OPENSSL_INCLUDE_DIR} ) +target_compile_definitions(mangosd + PUBLIC + $<$:ENABLE_ELUNA> +) + target_link_libraries(mangosd PUBLIC game diff --git a/src/shared/CMakeLists.txt b/src/shared/CMakeLists.txt index 9aca63ee..37d96e08 100644 --- a/src/shared/CMakeLists.txt +++ b/src/shared/CMakeLists.txt @@ -226,6 +226,7 @@ target_compile_definitions(shared $<$:MANGOS_DEBUG> MANGOS_ENDIAN=${ENDIAN_VALUE} $<$:ARCH_IS_BIG_ENDIAN> + $<$:ENABLE_ELUNA> ) target_link_libraries(shared