aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2022-03-18 14:34:31 +0100
committerAlexey Edelev <alexey.edelev@qt.io>2022-06-01 04:47:00 +0200
commit487d0f0c4e98142d5df9c56c748985a8c7e8942b (patch)
treeb54f1d2e7d3ed418b9b44adf58fb039554fedb19 /src
parent6ce68b9fe99f28376cd2118e2be880936d531946 (diff)
Use the unified check for the DEPFILE support
Task-number: QTBUG-99354 Change-Id: Ib87d3a3a1b234346f61c7d78efcb1b61a8e705e9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qml/Qt6QmlMacros.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake
index b8b5408b34..23202900fe 100644
--- a/src/qml/Qt6QmlMacros.cmake
+++ b/src/qml/Qt6QmlMacros.cmake
@@ -2319,9 +2319,9 @@ function(_qt_internal_qml_type_registration target)
cmake_policy(PUSH)
+ _qt_internal_check_depfile_support(has_depfile_support)
set(registration_cpp_file_dep_args)
- if (CMAKE_GENERATOR MATCHES "Ninja" OR
- (CMAKE_VERSION VERSION_GREATER_EQUAL 3.20 AND CMAKE_GENERATOR MATCHES "Makefiles"))
+ if(has_depfile_support)
if(POLICY CMP0116)
# Without explicitly setting this policy to NEW, we get a warning
# even though we ensure there's actually no problem here.