CMake Error - incorrect arguments for KDE_Version

I have the latest versions of KDE, MLT, CMake, and Kdenlive. I'm somewhat new to Linux and am using Debian. However, when I do cmake .., I get the following at the end:

-- Found Soprano Index: /usr/lib/libsopranoindex.so
-- Found Soprano Client: /usr/lib/libsopranoclient.so
CMake Error at src/CMakeLists.txt:206 (if):
if had incorrect arguments: ${KDE_VERSION} VERSION_EQUAL 4.3.80 OR
${KDE_VERSION} VERSION_GREATER 4.3.80 (Unknown arguments specified).

CMake Error at src/CMakeLists.txt:208 (else):
else An ELSE command was found outside of a proper IF ENDIF structure. Or
its arguments did not match the opening IF command.

CMake Error at src/CMakeLists.txt:210 (endif):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.

Any recommendations?

Are you sure you have the kdelibs devel packages installed?

Yes, I have KDE, kdelibs, kdelibs5, kdelibs5-dev, kdelibs5-data, and others installed and updated.

The current svn version of src/CMakeLists.txt contains the following at line 206:

if (${KDE_VERSION} VERSION_LESS 4.3.80)

From the error, it looks like you don't have the latest version. Could you please update or give more infos about the version you are trying to compile?

I think I had an earlier version.
Meanwhile, I switched to debian testing, installed the full kde4 desktop, and compiled from here. I guess one of the missing/too old libraries got installed/updated along the way..

Compilation works, and kdenlive starts.

Now I'm facing an error wich belongs to another thread

Thanks