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

Commit 965a63a

Browse files
Fix glog support for gflags
Ran: ``` ./build/test/cuda/test_tc_mapper --logtostderr=1 --debug_tc_mapper=1 ``` Prints what is expected
1 parent a9057d9 commit 965a63a

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)