Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PATCH: Fix ‘make check’ in separate build directory #486

Open
GoogleCodeExporter opened this issue Jul 15, 2015 · 0 comments
Open

PATCH: Fix ‘make check’ in separate build directory #486

GoogleCodeExporter opened this issue Jul 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

The fused-gtest target only generates files in fused-src, not 
samples/sample1.cc or samples/sample1_unittest.cc.  Declaring the latter files 
as build products was preventing make from finding them in the source directory 
when using a separate build directory.

--- a/Makefile.am
+++ b/Makefile.am
@@ -273,7 +273,7 @@ test_fused_gtest_test_CPPFLAGS = -I"$(srcdir)/fused-src"
 # Build rules for putting fused Google Test files into the distribution
 # package. The user can also create those files by manually running
 # scripts/fuse_gtest_files.py.
-$(test_fused_gtest_test_SOURCES): fused-gtest
+$(FUSED_GTEST_SRC): fused-gtest

 fused-gtest: $(pkginclude_HEADERS) $(pkginclude_internal_HEADERS) \
              $(GTEST_SRC) src/gtest-all.cc src/gtest_main.cc \

Original issue reported on code.google.com by andersk@mit.edu on 5 Apr 2015 at 7:25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant