D19581: Fix build with cmake < 3.7
noreply at phabricator.kde.org
Thu Mar 7 08:16:34 GMT 2019
wbauer created this revision.
wbauer added a project: Framework: Syntax Highlighting.
Herald added projects: Kate, Frameworks.
Herald added subscribers: kde-frameworks-devel, kwrite-devel.
wbauer requested review of this revision.
VERSION_GREATER_EQUAL requires cmake 3.7 or higher, but the minimum version supported by KDE Frameworks is 3.5.
So use NOT VERSION_LESS instead, which is logically equivalent and also
works with older cmake versions.
Builds fine with cmake 3.5.2 now.
Before, I got this cmake error:
CMake Error at data/CMakeLists.txt:69 (if):
if given arguments:
"3.5.2" "VERSION_GREATER_EQUAL" "3.13.0"
Unknown arguments specified
Still builds fine with newer cmake versions, tested with 3.10.2 and 3.13.4.
R216 Syntax Highlighting
Cc: kwrite-devel, kde-frameworks-devel, cullmann, gennad, bmortimer, domson, michaelh, genethomas, ngraham, bruns, demsking, vkrause, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KWrite-Devel