diff options
author | Thiago Macieira <thiago@kde.org> | 2006-05-31 07:31:21 +0000 |
---|---|---|
committer | Thiago Macieira <thiago@kde.org> | 2006-05-31 07:31:21 +0000 |
commit | 453aaa5d727b9f57b9afff2b7f1150b250ac1d38 (patch) | |
tree | 87d8f67c48271f890dd6b737109f0ae81a9ac80c /modules | |
parent | 3e8556ed033a9da40d2469c1f52bda8b54e59d74 (diff) | |
download | extra-cmake-modules-453aaa5d727b9f57b9afff2b7f1150b250ac1d38.tar.gz extra-cmake-modules-453aaa5d727b9f57b9afff2b7f1150b250ac1d38.tar.bz2 |
Re-add the DONTPORT check that I had removed in my own version
svn path=/trunk/KDE/kdelibs/; revision=546832
Diffstat (limited to 'modules')
-rw-r--r-- | modules/FindKDE4Internal.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 04b9d8ee..2e4d2810 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -259,6 +259,14 @@ else(EXISTS ${CMAKE_SOURCE_DIR}/kdecore/kglobal.h) STRING(REGEX MATCH "KDE: [0-9]+\\.[0-9]+\\.[0-9]+" KDEVERSION "${kdeconfig_output}") IF (KDEVERSION) + # avoid porting against kdelibs trunk + string(REGEX MATCH "DONTPORT" _match "${kdeconfig_output}") + if (_match) + message ( FATAL_ERROR "ERROR: don't port against this + version of kdelibs! Use /branches/work/kdelibs4_snapshot + instead!!" ) + endif (_match) + STRING(REGEX REPLACE "^KDE: " "" KDEVERSION "${KDEVERSION}") # we need at least this version: |