diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2022-03-20 13:13:29 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2022-03-24 16:24:38 +0000 |
commit | c34c6730dcfb4320ff3a18f4dc2accf157550fe8 (patch) | |
tree | a8499dba23167211ab52103a2eadac42ad53e82b | |
parent | 55296264560182d7b0170cd6b7d0cc5bca79dd9f (diff) | |
download | extra-cmake-modules-c34c6730dcfb4320ff3a18f4dc2accf157550fe8.tar.gz extra-cmake-modules-c34c6730dcfb4320ff3a18f4dc2accf157550fe8.tar.bz2 |
Deprecate ECMQueryQmake, superseded by ECMQueryQt
Which is a drop-in replacement, one just needs to replace query_qmake with
ecm_query_qt.
Copied the deprecation code from ECMQMLModules.cmake, saved a bit of
research time on how to do that in CMake.
-rw-r--r-- | modules/ECMQueryQmake.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/ECMQueryQmake.cmake b/modules/ECMQueryQmake.cmake index 4d7f9543..4277eeea 100644 --- a/modules/ECMQueryQmake.cmake +++ b/modules/ECMQueryQmake.cmake @@ -1,3 +1,7 @@ +if (${ECM_GLOBAL_FIND_VERSION} VERSION_GREATER_EQUAL 5.93) + message(DEPRECATION "ECMQueryQmake.cmake is deprecated since 5.93, please use ECMQueryQt.cmake instead.") +endif() + include(${CMAKE_CURRENT_LIST_DIR}/QtVersionOption.cmake) find_package(Qt${QT_MAJOR_VERSION}Core QUIET) |