]> https://gitweb.dealii.org/ - dealii.git/commit
fix cmake 3.3 warning about code-gallery.h 2185/head
authorTimo Heister <timo.heister@gmail.com>
Sun, 14 Feb 2016 15:15:33 +0000 (10:15 -0500)
committerTimo Heister <timo.heister@gmail.com>
Sun, 14 Feb 2016 15:20:29 +0000 (10:20 -0500)
commit3eade1e756cd5f132a9b9784c6dad6e86f028745
tree7a2513def2aa117d2c9398202b8c5ef719f949d6
parent9bc2b856ae89496acfc5fd2a5da7b1f11af3bc16
fix cmake 3.3 warning about code-gallery.h

cmake 3.3 will warn about CMP0058 and is unable to compile the documentation
when using Ninja:

 This project specifies custom command DEPENDS on files in the build tree
  that are not specified as the OUTPUT or BYPRODUCTS of any
  add_custom_command or add_custom_target:

   doc/doxygen/code-gallery/code-gallery.h

We have to jump through a few hoops to make this work: Generating a
dependency to a source file generated in a subdirectory CMakeLists.txt
requires a custom command attached to a custom_target. Because ADD_DEPENDENCIES
only allows custom_targets not custom_commands, we have to add another dummy.
doc/doxygen/code-gallery/CMakeLists.txt

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.