Skip to content
Snippets Groups Projects
Commit 102e4c86 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Merge branch 'cmake/buildsystem-documentation-policy-default-include-dirs' into 'master'

Improve the documentation of the dune policy DP_DEFAULT_INCLUDE_DIRS

See merge request !1462
parents 0dae3998 3bef38d1
No related branches found
No related tags found
2 merge requests!1470Fix wrong variable name to make target hash (2.10),!1462Improve the documentation of the dune policy DP_DEFAULT_INCLUDE_DIRS
Pipeline #74828 waiting for manual action
......@@ -212,6 +212,14 @@ Policies Introduced by Dune 2.10
*OLD behavior:* Set global ``include_directories`` when creating a new ``dune_project``.
*NEW behavior:* Include directories must be set on a module library targets and are not set globally anymore.
The NEW behavior requires module authors to set include directories on all their targets
or to link against another target that contains these include directories already. With
CMake you can use the command ``target_include_directories(<target> <scope> <dirs>...)``
to set directories ``<dirs>...`` as include directories for the target ``<target>``.
If the module follows a common directory layout, a default set of include directories
can be set on a target at once using the CMake function ``dune_default_include_directories(<target> <scope>)``.
.. _faq:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment