Adds -pthread and switches -I to -isystem in build instructions;

also pulls in the latest gtest revision (r638).
This commit is contained in:
zhanyong.wan
2013-02-27 17:53:45 +00:00
parent 40fa8ffc9e
commit cf40604cf0
2 changed files with 21 additions and 10 deletions

View File

@@ -27,10 +27,13 @@ GMOCK_DIR = ..
USER_DIR = ../test
# Flags passed to the preprocessor.
CPPFLAGS += -I$(GTEST_DIR)/include -I$(GMOCK_DIR)/include
# Set Google Test and Google Mock's header directories as system
# directories, such that the compiler doesn't generate warnings in
# these headers.
CPPFLAGS += -isystem $(GTEST_DIR)/include -isystem $(GMOCK_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.