From b99c22515244d08414cd3919edf4c1b2c5fa76dd Mon Sep 17 00:00:00 2001 From: Andreas Pakulat Date: Sun, 13 Sep 2009 18:49:13 +0000 Subject: Allow for changing the required Qt version for KDE apps, useful to require a particular patchlevel version to get bugfixes. svn path=/trunk/KDE/kdelibs/; revision=1023024 --- modules/FindKDE4Internal.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 34643d84..80e3656c 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -313,7 +313,12 @@ else(KDE4_FIND_REQUIRED OR KDE4Internal_FIND_REQUIRED) set(_REQ_STRING_KDE4_MESSAGE "STATUS") endif(KDE4_FIND_REQUIRED OR KDE4Internal_FIND_REQUIRED) -set(QT_MIN_VERSION "4.5.0") +# if the minimum Qt requirement is changed, change all occurrence in the +# following lines +if( NOT QT_MIN_VERSION OR ${QT_MIN_VERSION} VERSION_LESS "4.5.0" ) + set(QT_MIN_VERSION "4.5.0") +endif( NOT QT_MIN_VERSION OR ${QT_MIN_VERSION} VERSION_LESS "4.5.0" ) + #this line includes FindQt4.cmake, which searches the Qt library and headers find_package(Qt4 ${_REQ_STRING_KDE4}) -- cgit v1.2.1