Stop the flood of warnings due to qt_find_package() usage
The warning used to be a fatal error, until we found out that certain packages might provide optional targets, or provide one target out of a possible set. Until we figure out a better way to deal with that, remove the barrage of warnings while configuring. Change-Id: Iacf93a997a8f87f81167ac7c4cc991212e7fca5d Reviewed-by: Qt CMake Build Bot Reviewed-by: Jean-Michaël Celerier <jean-michael.celerier@kdab.com> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
parent
28306fc1ed
commit
bedb16ca61
@ -1959,10 +1959,6 @@ macro(qt_find_package)
|
||||
set_property(TARGET ${qt_find_package_target_name} PROPERTY
|
||||
IMPORTED_GLOBAL TRUE)
|
||||
endif()
|
||||
else()
|
||||
message(AUTHOR_WARNING
|
||||
"Error while trying to mark target '${qt_find_package_target_name}' as part"
|
||||
" of the ${ARGV0} package. Provided target name does not exist.")
|
||||
endif()
|
||||
|
||||
endforeach()
|
||||
|
Loading…
Reference in New Issue
Block a user