Skip to content

Commit

Permalink
Applied -DGLOG_NO_EXPORT to selected platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Mar 13, 2024
1 parent 1c0b77a commit 94191cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ if(MSVC)
set(OSTYPE_TXT "Windows")
message(STATUS "OSTYPE (forced by MSVC): '${OSTYPE_TXT}'")
set(PREFER_SYSTEM_LIBFMT ON)
add_definitions(-DGLOG_EXPORT)
add_compile_definitions(GLOG_NO_EXPORT)
elseif(MINGW)
set(OSTYPE_TXT "msys")
message(STATUS "OSTYPE (forced by MINGW): '${OSTYPE_TXT}'")
set(IS_MSYS ON)
# This is because of some new features of glog 0.7.0
add_definitions(-DGLOG_USE_GLOG_EXPORT)
# This will be needed (?) because of some new features of glog 0.7.0
# add_compile_definitions(GLOG_NO_EXPORT)
include(${TOOLS}/cmake-scripts/setup-libarchive.cmake)
else(MSVC)
else(MSVC)
include(${TOOLS}/cmake-scripts/setup-libarchive.cmake)

execute_process(
Expand Down

0 comments on commit 94191cb

Please sign in to comment.