]> https://gitweb.dealii.org/ - dealii.git/commit
Fix overwriting of unity files in reconfiguration. 5638/head
authorDavid Wells <wellsd2@rpi.edu>
Sun, 17 Dec 2017 22:13:59 +0000 (17:13 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 18 Dec 2017 13:55:52 +0000 (08:55 -0500)
commit1934fcfe2e5d9babca3116668ca98a6612707d3f
treed85bb7a81e0cc461f4a0b05ad5219d96ac60e56b
parent152b5909b5438dd01829d93a986cd97fcd43e1b9
Fix overwriting of unity files in reconfiguration.

One flaw in the unity build system is that it always generates the unity
inclusion files when the build system is (re)configured. This results in a lot
of extra compilation.

This patch fixes the issue by first writing to a temporary file and then
moving it only if it is not equal to the current unity file.
cmake/macros/macro_setup_unity_target.cmake

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.