diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2022-03-18 14:29:03 +0100 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2022-03-21 12:39:49 +0100 |
commit | 68c0e932a5acb7e3fe6dc34540fe4c81770eba88 (patch) | |
tree | 5b98a6640435a4e2e13cf92923cdc2779c093598 /src | |
parent | 83e11b5fc42ef5bbb7d0226c672e83f58021869e (diff) |
Unify DEPFILE support check
Add common function that unifies the check for the DEPFILE support.
Update the check according to the recent CMake version.
Task-number: QTBUG-99354
Change-Id: Ia2abf46fe3a9a3d17ea7a37eaf6c9c6a697c5b84
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/Qt6AndroidMacros.cmake | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/corelib/Qt6AndroidMacros.cmake b/src/corelib/Qt6AndroidMacros.cmake index 0a3fc0ff79..f56532625c 100644 --- a/src/corelib/Qt6AndroidMacros.cmake +++ b/src/corelib/Qt6AndroidMacros.cmake @@ -388,13 +388,7 @@ function(qt6_android_add_apk_target target) list(APPEND extra_args "--verbose") endif() - # The DEPFILE argument to add_custom_command is only available with Ninja or CMake>=3.20 and - # make. - set(has_depfile_support FALSE) - if(CMAKE_GENERATOR MATCHES "Ninja" OR - (CMAKE_VERSION VERSION_GREATER_EQUAL 3.20 AND CMAKE_GENERATOR MATCHES "Makefiles")) - set(has_depfile_support TRUE) - endif() + _qt_internal_check_depfile_support(has_depfile_support) if(has_depfile_support) cmake_policy(PUSH) |