summaryrefslogtreecommitdiffstats
path: root/cmake/QtFindWrapHelper.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-06-26 18:32:53 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-06-26 22:14:48 +0200
commitb0772b41c26dc9e628df520f4e63ac9742ba88b2 (patch)
treee8f4244628cf6dd0ca4d1ebf390b1cef6138fba3 /cmake/QtFindWrapHelper.cmake
parentfb5cf5be15781be42f7aca21829937b28b98e955 (diff)
CMake: Display found information in some of the Find modules
Change-Id: I5d92f2f1a552888361a2939577c2b0177c62b596 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake/QtFindWrapHelper.cmake')
-rw-r--r--cmake/QtFindWrapHelper.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/QtFindWrapHelper.cmake b/cmake/QtFindWrapHelper.cmake
index f536df99e1..beafad9ab3 100644
--- a/cmake/QtFindWrapHelper.cmake
+++ b/cmake/QtFindWrapHelper.cmake
@@ -76,6 +76,11 @@ macro(qt_find_package_system_or_bundled _unique_prefix)
set_target_properties("${_qfwrap_${_unique_prefix}_WRAP_PACKAGE_TARGET}" PROPERTIES
INTERFACE_QT_3RD_PARTY_PACKAGE_TYPE
"${${_unique_prefix}_qt_package_type}")
+
+ include(FindPackageHandleStandardArgs)
+ find_package_handle_standard_args(
+ Wrap${_qfwrap_${_unique_prefix}_FRIENDLY_PACKAGE_NAME}
+ DEFAULT_MSG ${_qfwrap_${_unique_prefix}_WRAP_PACKAGE_FOUND_VAR_NAME})
elseif(${_unique_prefix}_qt_package_type STREQUAL "bundled")
message(FATAL_ERROR "Can't find ${${_unique_prefix}_qt_package_target_to_use}.")
endif()