From 5a9069cdd18c0a35e026117dab4cfa8b47eef39f Mon Sep 17 00:00:00 2001 From: "Maxim [maxirmx] Samsonov" Date: Wed, 13 Mar 2024 18:19:54 +0300 Subject: [PATCH] Apply -DGLOG_USE_GLOG_EXPORT to all platforms --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6e09ef65..249f0fdf1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,6 +158,9 @@ include(${TOOLS}/cmake-scripts/def-external-project.cmake) include_directories(${DEPS_INCLUDE_DIR}) link_directories(${DEPS_LIB_DIR}) +# This is because of some new features of glog 0.7.0 +add_definitions(-DGLOG_USE_GLOG_EXPORT) + set(IS_MSYS OFF) if(MSVC) set(OSTYPE_TXT "Windows") @@ -216,8 +219,6 @@ if ("${OSTYPE_TXT}" MATCHES "msys") add_dependencies(_LIBARCHIVE ${LIBUTFCPP_PRJ}) find_library(WINSOCK ws2_32 REQUIRED) message(STATUS "Using winsock2 at ${WINSOCK}") - # This is because of some new features of glog 0.7.0 - add_definitions(-DGLOG_USE_GLOG_EXPORT) if (NOT NO_PATCH) set(PATCH_FOLLY ON)