aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmldevtools
diff options
context:
space:
mode:
authorChristophe Giboudeaux <christophe@krop.fr>2020-05-05 12:05:16 +0200
committerChristophe Giboudeaux <christophe@krop.fr>2020-05-05 21:34:10 +0000
commitb2f8d680d65b987ab88c41a2f76e6becbad62864 (patch)
tree97b807013b09e8902692749d6942cafb2975499d /src/qmldevtools
parent72cfce2327f7b6277c4062da1aa7a171d8d57ff8 (diff)
Don't hardcode the include directory name
There's no guarantee that include files will be installed into 'include/'. Use INSTALL_INCLUDEDIR instead which can be changed when running CMake. Change-Id: I9af9fbdabd0b317a255f6c3e9e77af4ddf0792a9 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/qmldevtools')
-rw-r--r--src/qmldevtools/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmldevtools/CMakeLists.txt b/src/qmldevtools/CMakeLists.txt
index b0dba5c396..4648c6854c 100644
--- a/src/qmldevtools/CMakeLists.txt
+++ b/src/qmldevtools/CMakeLists.txt
@@ -84,9 +84,9 @@ if(QT_FEATURE_framework)
)
else()
set(_qml_dev_tools_public_includes
- $<INSTALL_INTERFACE:include/${qml_module}>
- $<INSTALL_INTERFACE:include/${qml_module}/${PROJECT_VERSION}>
- $<INSTALL_INTERFACE:include/${qml_module}/${PROJECT_VERSION}/${qml_module}>
+ $<INSTALL_INTERFACE:${INSTALL_INCLUDEDIR}/${qml_module}>
+ $<INSTALL_INTERFACE:${INSTALL_INCLUDEDIR}/${qml_module}/${PROJECT_VERSION}>
+ $<INSTALL_INTERFACE:${INSTALL_INCLUDEDIR}/${qml_module}/${PROJECT_VERSION}/${qml_module}>
)
endif()
target_include_directories(QmlDevTools PRIVATE ${_qml_dev_tools_public_includes})