summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Lipponer <mail@sebastianlipponer.de>2021-09-14 03:59:54 +0200
committerGitHub <noreply@github.com>2021-09-14 10:59:54 +0900
commit4a82545662d7d9d9b54be7393c382a4d1759daef (patch)
tree0f291ff03cf6c6681e42683e859067f03993d88c /src
parentfd70ae43f25c1737419a3a9912855a3116497815 (diff)
downloadDLT-daemon-4a82545662d7d9d9b54be7393c382a4d1759daef.tar.gz
libdlt: Add legacy include path in exported CMake config file (#327)
Previously the generated .pc file was changed to export an additional include path such that '#include <dlt.h>' and '#include <dlt/dlt.h>' can be used. However the exported CMake config file only supports the latter include statement. Consequently code that uses the other legacy include statement does not compile with the exported CMake config file. This change fixes this inconsistency. It lets users compile existing code with either the pkg-config .pc file or the CMake config file and avoids code clutter that is currently necessary to make this work. Signed-off-by: Sebastian Lipponer <mail@sebastianlipponer.de>
Diffstat (limited to 'src')
-rw-r--r--src/lib/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index 5a94bef..acf1587 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -51,6 +51,7 @@ target_include_directories(dlt
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/dlt>
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include/dlt>
$<INSTALL_INTERFACE:include>
+ $<INSTALL_INTERFACE:include/dlt>
)
if(WITH_LIB_SHORT_VERSION)