Skip to content

Commit

Permalink
Fix LNK4049 warnings from glog in MSVC build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmp committed Jul 25, 2018
1 parent 03793be commit 44546d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ ENDIF()

SET(WITH_GFLAGS OFF CACHE BOOL "Use gflags")
SET(BUILD_SHARED_LIBS OFF CACHE BOOL " " FORCE)
IF(WIN32)
ADD_DEFINITIONS( -D GOOGLE_GLOG_DLL_DECL= )
ENDIF()
ADD_SUBDIRECTORY(src/ext/glog)
SET_PROPERTY(TARGET glog logging_unittest demangle_unittest utilities_unittest stl_logging_unittest PROPERTY FOLDER "ext")
INCLUDE_DIRECTORIES (
Expand Down

0 comments on commit 44546d4

Please sign in to comment.