summaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rw-r--r--src/lib/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index acf1587..fb5a2a4 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -51,8 +51,14 @@ 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>
)
+# With this option set, a legacy include path is added in addition to the regular one.
+if(WITH_LEGACY_INCLUDE_PATH)
+ target_include_directories(dlt
+ PUBLIC
+ $<INSTALL_INTERFACE:include/dlt>
+ )
+endif()
if(WITH_LIB_SHORT_VERSION)
set_target_properties(dlt PROPERTIES VERSION ${PROJECT_VERSION_MAJOR} SOVERSION ${PROJECT_VERSION_MAJOR})