summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Croitor <[email protected]>2025-12-10 17:38:41 +0100
committerAlexandru Croitor <[email protected]>2025-12-11 23:42:43 +0100
commit05269819d009501d2528f971a60c62bcb87351be (patch)
treedba52a21241fb1c47c63a95b2bc65812ee117ea0
parent86a5ecbc339b10301dd2c6a09c8d346ab8b97cbd (diff)
CMake: Silence cmake generator warning for iOS test projects
A developer might want to open a qt auto test project to build and launch it on an iOS simulator or device. For iOS apps we require the Xcode generator to handle the code signing and launching. But Qt warns when using a generator other than Ninja for a project that loads the BuildInternals package. Add an exception to silence the warning when building for iOS in standalone test projects which also load the BuildInternals package. Pick-to: 6.8 6.10 6.11 Change-Id: I4748060238678a103578c76ce3994dc1abc7a779 Reviewed-by: Tor Arne Vestbø <[email protected]> Reviewed-by: Joerg Bornemann <[email protected]>
-rw-r--r--cmake/QtBuildHelpers.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtBuildHelpers.cmake b/cmake/QtBuildHelpers.cmake
index 91983636712..3ef292b27bc 100644
--- a/cmake/QtBuildHelpers.cmake
+++ b/cmake/QtBuildHelpers.cmake
@@ -6,6 +6,7 @@ function(qt_internal_validate_cmake_generator)
if(NOT warning_shown
AND NOT CMAKE_GENERATOR MATCHES "Ninja"
+ AND NOT (IOS AND QT_INTERNAL_IS_STANDALONE_TEST)
AND NOT QT_SILENCE_CMAKE_GENERATOR_WARNING
AND NOT DEFINED ENV{QT_SILENCE_CMAKE_GENERATOR_WARNING})
set_property(GLOBAL PROPERTY _qt_validate_cmake_generator_warning_shown TRUE)