summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2022-11-17 09:06:45 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-01-13 10:44:11 +0000
commitcc3743a57952aaa604ddd7dc22a00c80d6a9d8d7 (patch)
tree8c350f06c2bcbbd8c3fd4140b6704b91aaece37f /cmake
parent314b678a1aecb4769b4681daf769aab55c0a08bc (diff)
downloadqtbase-cc3743a57952aaa604ddd7dc22a00c80d6a9d8d7.tar.gz
Add find package for lttng library so that it gets added to target
Add it globally so that each module using tracepoints don't have to add it themselves to each modules configure.cmake. Change-Id: Id58cfaff5cd715b2667da2470001d646117f9f28 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit bab65d70dcaf08e85113d5203056a4b8dd2c1fa7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBuildInternals/QtBuildInternalsConfig.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake b/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake
index 5be59ed54e..9d8df960d2 100644
--- a/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake
+++ b/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake
@@ -577,6 +577,10 @@ macro(qt_build_repo_impl_src)
add_subdirectory(src)
endif()
endif()
+ if(QT_FEATURE_lttng AND NOT TARGET LTTng::UST)
+ qt_find_package(LTTngUST PROVIDED_TARGETS LTTng::UST
+ MODULE_NAME global QMAKE_LIB lttng-ust)
+ endif()
endmacro()
macro(qt_build_repo_impl_tools)