diff options
author | Eike Ziller <eike.ziller@qt.io> | 2022-12-20 17:31:22 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2023-01-05 10:13:16 +0000 |
commit | 55fa109b5935725e8f4c0b1bbd286017b6f52979 (patch) | |
tree | c329d39e3b2f2bc8a899e2f1b263cf22ca91bacf /doc | |
parent | 894685d50132d5d3f9785df72aa38d1b4a7d7b8d (diff) | |
download | qt-creator-55fa109b5935725e8f4c0b1bbd286017b6f52979.tar.gz |
CMake build: Use version-less Qt targets
Since we do not support Qt < 5.15 anymore, and as a first step
for getting rid of our special FindQt5.cmake.
Change-Id: Icc5dbaf9b0a3a622b1f609ff114b9decb6d2856c
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 077d181493..23cada0590 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -25,7 +25,9 @@ function(_find_all_includes _ret_includes _ret_framework_paths) # framework path if (APPLE) - get_target_property(_qt_target Qt5::Core LOCATION) # <fw_path>/QtCore.framework/QtCore + # version-less target Qt::Core is an interface library that links to QtX::Core + get_target_property(_qt_core Qt::Core INTERFACE_LINK_LIBRARIES) + get_target_property(_qt_target ${_qt_core} LOCATION) # <fw_path>/QtCore.framework/QtCore get_filename_component(_qt_loc "${_qt_target}" DIRECTORY) set("${_ret_framework_paths}" "${_qt_loc}/.." PARENT_SCOPE) endif() |