]> https://gitweb.dealii.org/ - dealii.git/commit
fix cmake 3.3 warning about code-gallery.h 2187/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:24:49 +0000 (10:24 -0500)
commitc6b7a8d5fd4f11af6f6f3bffd846b83d30534fe1
treec1fdca00f9676f43f17b6309098805d83b3e2b4d
parentadc89024ec2c297e32078b4ac133c50c4e1c5ce1
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.