From c34c6730dcfb4320ff3a18f4dc2accf157550fe8 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Sun, 20 Mar 2022 13:13:29 +0200 Subject: 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. --- modules/ECMQueryQmake.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.1