]> https://gitweb.dealii.org/ - dealii.git/commit
make expand_instantiations more robust 2417/head
authorTimo Heister <timo.heister@gmail.com>
Sat, 26 Mar 2016 06:06:01 +0000 (07:06 +0100)
committerTimo Heister <timo.heister@gmail.com>
Sat, 26 Mar 2016 06:06:01 +0000 (07:06 +0100)
commit779b651a10e60d309a60ff7cd2d5124269fa21a7
tree688201e91bf0f0c30a72a949362eecfd9ac08b64
parent0cb18a1aba58177c59bfe3755d13e67cc6099244
make expand_instantiations more robust

If the .inst.in files contains a mistake so that expand_instantiations
fails, the output will still be created and is then considered updated.
As a result, a second run of "make" happily continues without failing.
Fix this by creating a temporary file and only moving if the first call
succeededs.
Also make one error message more verbose.
cmake/macros/macro_expand_instantiations.cmake
cmake/scripts/expand_instantiations.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.