From a322dc534bbb466e95a833c1ec068cf31ae0e8c1 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Thu, 28 Feb 2019 22:41:06 +0200 Subject: Revert "Improve declare_dependency() example in Generating-sources.md [skip ci]" This reverts commit 67a01c8d7fc8a4e1c237329ecad4af162186b4ba. --- docs/markdown/Generating-sources.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'docs/markdown') diff --git a/docs/markdown/Generating-sources.md b/docs/markdown/Generating-sources.md index ef7d5ac..306bee3 100644 --- a/docs/markdown/Generating-sources.md +++ b/docs/markdown/Generating-sources.md @@ -111,16 +111,11 @@ and library dependency, especially if there are many generated headers: ```meson idep_foo = declare_dependency( - include_directories : libfoo.private_dir_include(), + sources : [foo_h, bar_h], link_with : [libfoo], ) ``` -Adding the static library's private include directory to -`include_directories` of `declare_dependency` will make sure all headers -are generated before any sources of a target linking against libfoo are -built. - See [dependencies](Dependencies.md#declaring-your-own), and [reference](Reference-manual.md#decalre_dependency) for more information. -- cgit v1.1