From 251e3b44fab72c29d36018c61b79fe942f5402d5 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Wed, 31 May 2023 12:09:34 +0200 Subject: [PATCH] Add the description for the QT_ALLOW_DOWNLOAD option Introduce QT_ALLOW_DOWNLOAD option that should be used the downloading of the resources from web in Qt builds. Calls like file(DOWNLOAD or FetchContent_* should be wrapped with this option, so users that build Qt could control this and disable functionality that requires resources from web. Change-Id: Ie0494265c0c5fe93a7ef0d1cbcee1af919d57fa5 Reviewed-by: Alexandru Croitor --- cmake/QtSetup.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake index 7efb1a3b067..caf342214e7 100644 --- a/cmake/QtSetup.cmake +++ b/cmake/QtSetup.cmake @@ -382,3 +382,5 @@ if(NOT QT_BUILD_EXAMPLES) # Disable deployment setup to avoid warnings about missing patchelf with CMake < 3.21. set(QT_SKIP_SETUP_DEPLOYMENT ON) endif() + +option(QT_ALLOW_DOWNLOAD "Allows files to be downloaded when building Qt." OFF)