[SCons] Check for <tr1/tuple>

This header is used by GTest. If not present, define 'GTEST_USE_OWN_TR1_TUPLE'
to use an alternative version. Fixes a compilation error on OS X.
This commit is contained in:
Ray Speth
2014-01-08 17:10:34 +00:00
parent 908b63fccd
commit a8d8f3f0ca
3 changed files with 6 additions and 0 deletions
+3
View File
@@ -9,6 +9,9 @@ localenv.Prepend(CPPPATH=['#ext/gtest/include', '#include'],
localenv.Append(LIBS=['gtest'] + localenv['cantera_libs'],
CCFLAGS=env['warning_flags'])
if not localenv['HAS_TR1_TUPLE']:
localenv.Append(CPPDEFINES='GTEST_USE_OWN_TR1_TUPLE')
localenv['ENV']['CANTERA_DATA'] = Dir('#build/data').abspath
PASSED_FILES = {}