aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/Makefile.template
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-08-24 17:00:04 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-08-24 17:00:04 -0700
commit16f6dac8e81a818f399b180c673d966cd40603c1 (patch)
tree9efeb77490c950ecf3e017705378916d1084ae55 /templates/Makefile.template
parentfede51f7b7efe27afa73e094ab71aa6fa8b93712 (diff)
Make googletest a submodule
Diffstat (limited to 'templates/Makefile.template')
-rw-r--r--templates/Makefile.template8
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/Makefile.template b/templates/Makefile.template
index 1b898efbdd..00582a22f8 100644
--- a/templates/Makefile.template
+++ b/templates/Makefile.template
@@ -313,11 +313,7 @@ LIBS = m z pthread
LDFLAGS += -pthread
endif
-ifneq ($(wildcard /usr/src/gtest/src/gtest-all.cc),)
-GTEST_LIB = /usr/src/gtest/src/gtest-all.cc -I/usr/src/gtest
-else
-GTEST_LIB = -lgtest
-endif
+GTEST_LIB = -Ithird_party/googletest/include -Ithird_party/googletest third_party/googletest/src/gtest-all.cc
GTEST_LIB += -lgflags
ifeq ($(V),1)
E = @:
@@ -637,6 +633,8 @@ PROTOBUF_PKG_CONFIG = false
PC_REQUIRES_GRPCXX =
PC_LIBS_GRPCXX =
+CPPFLAGS := -Ithird_party/googletest/include $(CPPFLAGS)
+
ifeq ($(HAS_SYSTEM_PROTOBUF),true)
ifeq ($(HAS_PKG_CONFIG),true)
PROTOBUF_PKG_CONFIG = true