[build] unit tests were having trouble finding include files.
I'm not sure why this broke.
This commit is contained in:
parent
ba8d5ab5e4
commit
c5faf7b2b9
@ -185,6 +185,7 @@ INSTALL_DATA = $(INSTALL) -p -m 644
|
|||||||
|
|
||||||
ifeq ("@TESTING@", "yes")
|
ifeq ("@TESTING@", "yes")
|
||||||
TEST_INCLUDES=\
|
TEST_INCLUDES=\
|
||||||
|
-I$(TOP_DIR) \
|
||||||
-Igoogletest/googlemock/include \
|
-Igoogletest/googlemock/include \
|
||||||
-Igoogletest/googletest/include
|
-Igoogletest/googletest/include
|
||||||
else
|
else
|
||||||
|
@ -78,9 +78,9 @@ TEST_OBJECTS=$(subst .cc,.gmo,$(TEST_SOURCE))
|
|||||||
|
|
||||||
%.gmo: %.cc
|
%.gmo: %.cc
|
||||||
@echo " [CXX] $<"
|
@echo " [CXX] $<"
|
||||||
$(V) $(CXX) -c $(CPPFLAGS) $(GMOCK_INCLUDES) $(CXXFLAGS) $(GMOCK_FLAGS) -o $@ $<
|
$(V) $(CXX) -c $(CPPFLAGS) $(TEST_INCLUDES) $(GMOCK_INCLUDES) $(CXXFLAGS) $(GMOCK_FLAGS) -o $@ $<
|
||||||
@echo " [DEP] $<"
|
@echo " [DEP] $<"
|
||||||
$(V) $(CXX) -MM -MT $(subst .cc,.o,$<) $(CPPFLAGS) $(GMOCK_INCLUDES) $(CXXFLAGS) $(GMOCK_FLAGS) $< > $*.$$$$; \
|
$(V) $(CXX) -MM -MT $(subst .cc,.o,$<) $(CPPFLAGS) $(TEST_INCLUDES) $(GMOCK_INCLUDES) $(CXXFLAGS) $(GMOCK_FLAGS) $< > $*.$$$$; \
|
||||||
sed 's,\([^ :]*\)\.o[ :]*,\1.o \1.gmo $* : Makefile ,g' < $*.$$$$ > $*.d; \
|
sed 's,\([^ :]*\)\.o[ :]*,\1.o \1.gmo $* : Makefile ,g' < $*.$$$$ > $*.d; \
|
||||||
$(RM) $*.$$$$
|
$(RM) $*.$$$$
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user