Suppress the Private module warning if QT_FIND_PRIVATE_MODULES is ON

If users set QT_FIND_PRIVATE_MODULES we may assume that they know
what they are doing and it's the conscious decision, and the
Private module warning is not needed.

Ammends a9f26c3f9a9eb6758e3ef116e319a6cca8715a1c

Change-Id: I2d7bf86060b87365bda0a8355427c52b1b38c456
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit 14d1651d15b629701b6de407ee98a9fcd93808f4)
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Alexey Edelev 2025-03-07 13:40:17 +01:00 committed by Joerg Bornemann
parent 1d4c440053
commit 771ef80f67

View File

@ -324,7 +324,7 @@ macro(_qt_internal_setup_qt_host_path
endmacro()
function(_qt_internal_show_private_module_warning module)
if(DEFINED QT_REPO_MODULE_VERSION OR QT_NO_PRIVATE_MODULE_WARNING)
if(DEFINED QT_REPO_MODULE_VERSION OR QT_NO_PRIVATE_MODULE_WARNING OR QT_FIND_PRIVATE_MODULES)
return()
endif()