Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit f020d0e

Browse files
Merge pull request #474 from nicolasvasilache/pr/fix-glog-gflags
Fix glog support for gflags
2 parents 65e42b5 + 965a63a commit f020d0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ set(GFLAGS_LIBRARIES gflags)
107107
#################################################################################
108108
## glog
109109
#################################################################################
110+
# For our purposes we need to build glog with gflags support.
111+
# For this, glog needs to know about the gflags TARGET.
112+
# Since TC builds the gflags TARGET in tree, declare it found for use in glog.
113+
set(gflags_FOUND ON)
110114
add_subdirectory(third-party/googlelibraries/glog)
111115
include_directories(BEFORE ${glog_BINARY_DIR})
112116
# This is a TARGET, not library names so no .d gets appended ever

0 commit comments

Comments
 (0)