[SCons] Make dependency on copying Eigen headers explicit

SCons seems to miss this dependency sometimes, resulting in confusing failures
while trying to compile DenseMatrix.cpp.
This commit is contained in:
Ray Speth
2019-01-30 14:20:12 -05:00
parent dc09040274
commit 46b7cf180a

View File

@@ -84,8 +84,9 @@ if env['system_sundials'] == 'n':
if not env['system_eigen']:
license_files.append(('Eigen', 'eigen/COPYING.MPL2'))
build(copyenv.Command('#include/cantera/ext/Eigen', '#ext/eigen/Eigen',
Copy('$TARGET', '$SOURCE')))
h = build(copyenv.Command('#include/cantera/ext/Eigen', '#ext/eigen/Eigen',
Copy('$TARGET', '$SOURCE')))
copyenv.Depends(copyenv['config_h_target'], h)
# Google Test: Used internally for Cantera unit tests.
if env['googletest'] == 'submodule':