diff options
author | Andreas Pakulat <apaku@gmx.de> | 2009-09-13 18:49:13 +0000 |
---|---|---|
committer | Andreas Pakulat <apaku@gmx.de> | 2009-09-13 18:49:13 +0000 |
commit | b99c22515244d08414cd3919edf4c1b2c5fa76dd (patch) | |
tree | fa4654725c6fc996b6c95c777da845c2bae35dce | |
parent | be0e83737f286af129d5d50afdd36985833c6cfd (diff) | |
download | extra-cmake-modules-b99c22515244d08414cd3919edf4c1b2c5fa76dd.tar.gz extra-cmake-modules-b99c22515244d08414cd3919edf4c1b2c5fa76dd.tar.bz2 |
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
-rw-r--r-- | modules/FindKDE4Internal.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
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}) |