summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMartin Willers <M.Willers@gmx.net>2021-10-05 03:35:57 +0200
committerGitHub <noreply@github.com>2021-10-05 10:35:57 +0900
commitd5fd7d9fc253b5dc713bd79dd275b64d26dbe0aa (patch)
tree8a8522fa71046ec56f46850c6312aa29bc887f08 /doc
parentaa51bf547d85352a5f384cf7a35f499792a757af (diff)
downloadDLT-daemon-d5fd7d9fc253b5dc713bd79dd275b64d26dbe0aa.tar.gz
Make the legacy include path a CMake option (#332)
Signed-off-by: Martin Willers <M.Willers@gmx.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/dlt_for_developers.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/dlt_for_developers.md b/doc/dlt_for_developers.md
index 844eb40..bedb802 100644
--- a/doc/dlt_for_developers.md
+++ b/doc/dlt_for_developers.md
@@ -24,8 +24,6 @@ within the standard include directory.
This example gives an overview of DLT usage inside an application by using a
minimal code example. Detailed information about the API can be found later in
this document.
-Please note that for backwards compatibility also the legacy #include statement
-`<dlt.h>` is supported. Using it for new code is not recommended, though.
```
#include <dlt/dlt.h>
@@ -81,6 +79,15 @@ exports an IMPORTED CMake target; it does not set any variables, except for the
`automotive-dlt_FOUND` variable that can be used to treat DLT as an optional
dependency.
+The generated CMake config file (which is implicitly being used when you call
+`find_package(automotive-dlt)`) by default only adds the top-level directory
+to the compiler's header search path; this requires that users' #include
+directives are written in the regular form e.g. `<dlt/dlt.h>`. If you want
+to be able to use the legacy form `<dlt.h>` as well (as is always allowed by
+the pkg-config module for backwards compatibility reasons), you can configure
+DLT with the CMake option `-DWITH_LEGACY_INCLUDE_PATH=On` in order to
+achieve that.
+
### DLT with pkg-config
Alternatively to the CMake integration detailed above, it is also possible