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?

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