From b854938bd06bb0c38ed9fd076bcacdbfe2bd8c31 Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Wed, 27 Feb 2013 17:49:18 +0000 Subject: Adds -pthread and changes -I to -isystem in gtest's build instructions. --- make/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'make') diff --git a/make/Makefile b/make/Makefile index 5b27b6a2..9ac74493 100644 --- a/make/Makefile +++ b/make/Makefile @@ -20,10 +20,12 @@ GTEST_DIR = .. USER_DIR = ../samples # Flags passed to the preprocessor. -CPPFLAGS += -I$(GTEST_DIR)/include +# Set Google Test's header directory as a system directory, such that +# the compiler doesn't generate warnings in Google Test headers. +CPPFLAGS += -isystem $(GTEST_DIR)/include # Flags passed to the C++ compiler. -CXXFLAGS += -g -Wall -Wextra +CXXFLAGS += -g -Wall -Wextra -pthread # All tests produced by this Makefile. Remember to add new tests you # created to the list. -- cgit v1.2.3