Skip to content

Commit

Permalink
With Google Test 1.8.0, I seem to need both libs.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmonz committed Aug 13, 2018
1 parent 97ec616 commit 6599767
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ gtest.a : gtest-all.o
gtest_main.a : gtest-all.o gtest_main.o
$(AR) $(ARFLAGS) $@ $^

# Builds a sample test. A test should link with either gtest.a or
# gtest_main.a, depending on whether it defines its own main()
# function.
# Builds a sample test. A test should link with gtest.a, and also
# gtest_main.a if it doesn't define its own main() function.

GildedRose.o : $(USER_DIR)/GildedRose.cc
$(CXX) -c $^
Expand All @@ -76,7 +75,7 @@ GildedRoseUnitTests.o : $(USER_DIR)/GildedRoseUnitTests.cc \
$(GTEST_HEADERS)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/GildedRoseUnitTests.cc

GildedRose : GildedRoseUnitTests.o GildedRose.o gtest_main.a
GildedRose : GildedRoseUnitTests.o GildedRose.o gtest.a gtest_main.a
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -pthread $^ -o $@

GildedRoseTextTests.o : $(USER_DIR)/GildedRoseTextTests.cc
Expand Down

0 comments on commit 6599767

Please sign in to comment.