From 7cb1ba4ac81ed59cc21bbdd8f00a0332282a83b6 Mon Sep 17 00:00:00 2001 From: shiqian Date: Sun, 12 Oct 2008 01:07:26 +0000 Subject: [PATCH] Fixes the header search path in SConscript and add SConscript to the distribution. --- trunk/Makefile.am | 1 + trunk/scons/SConscript | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/trunk/Makefile.am b/trunk/Makefile.am index fba0c26e..2df9b51b 100644 --- a/trunk/Makefile.am +++ b/trunk/Makefile.am @@ -7,6 +7,7 @@ EXTRA_DIST = \ CHANGES \ CONTRIBUTORS \ include/gtest/internal/gtest-type-util.h.pump \ + scons/SConscript \ scripts/gen_gtest_pred_impl.py \ src/gtest-all.cc diff --git a/trunk/scons/SConscript b/trunk/scons/SConscript index 3fcda157..8c2f9e40 100644 --- a/trunk/scons/SConscript +++ b/trunk/scons/SConscript @@ -96,10 +96,11 @@ __author__ = 'joi@google.com (Joi Sigurdsson)' Import('env') env = env.Clone() -# Include paths to gtest headers are relative to a directory two above -# the gtest directory itself, and this SConscript file is one -# directory deeper than the gtest directory. -env.Prepend(CPPPATH = ['../../..']) +# Include paths to gtest headers are relative to either the gtest +# directory or the 'include' subdirectory of it, and this SConscript +# file is one directory deeper than the gtest directory. +env.Prepend(CPPPATH = ['..', + '../include']) # TODO(joi@google.com) Fix the code that causes this warning so that # we see all warnings from the compiler about possible 64-bit porting