Added explicit dependency for Matlab extension on clib headers
This commit is contained in:
parent
93eb3cf033
commit
1618de5a24
2 changed files with 3 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ target = localenv.Command(mexFile,
|
|||
'build_cantera.m',
|
||||
build_cmd % localenv)
|
||||
buildTargets.extend(target)
|
||||
localenv.Depends(target, env['clib_header_targets'])
|
||||
|
||||
### Install the Matlab toolbox ###
|
||||
inst = localenv.RecursiveInstall('$inst_matlab_dir', 'cantera')
|
||||
|
|
|
|||
|
|
@ -835,12 +835,14 @@ for header in mglob(env, 'Cantera/cxx/include', 'h'):
|
|||
inst = env.Install('$inst_incdir', header)
|
||||
installTargets.extend(inst)
|
||||
|
||||
env['clib_header_targets'] = []
|
||||
for header in mglob(env, 'Cantera/clib/src', 'h'):
|
||||
hcopy = env.Command('build/include/cantera/clib/%s' % header.name, header,
|
||||
Copy('$TARGET', '$SOURCE'))
|
||||
buildTargets.append(header)
|
||||
inst = env.Install(pjoin('$inst_incdir','clib'), header)
|
||||
installTargets.extend(inst)
|
||||
env['clib_header_targets'].append(hcopy)
|
||||
|
||||
inst = env.Install(pjoin('$inst_incdir', 'kernel'), config_h)
|
||||
installTargets.extend(inst)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue