diff options
author | Christophe Giboudeaux <christophe@krop.fr> | 2021-07-12 11:23:46 +0200 |
---|---|---|
committer | Friedrich W. H. Kossebau <kossebau@kde.org> | 2021-07-12 13:00:17 +0000 |
commit | 60a318a24bd423d671bf2eeae13d1ba93110d9de (patch) | |
tree | fc399ad526b19b51c38df72978c3857084e05e76 | |
parent | 730eb66eaf705eb6b0c2b31821f50bcd5b4a2a35 (diff) | |
download | extra-cmake-modules-60a318a24bd423d671bf2eeae13d1ba93110d9de.tar.gz extra-cmake-modules-60a318a24bd423d671bf2eeae13d1ba93110d9de.tar.bz2 |
Handle case where ECM_GLOBAL_FIND_VERSION is undefined
If no minimum ECM version is required, ECM_GLOBAL_FIND_VERSION is empty
and the version comparison fails.
Amends: 12af1e4e5
-rw-r--r-- | kde-modules/KDECompilerSettings.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake index 872edf18..ec2d5abd 100644 --- a/kde-modules/KDECompilerSettings.cmake +++ b/kde-modules/KDECompilerSettings.cmake @@ -209,9 +209,9 @@ Since pre-1.0.0. # will offer as settings, the minimum required version of ECM sets the upper # limit then for the level version. if(NOT DEFINED KDE_COMPILERSETTINGS_LEVEL) - set(KDE_COMPILERSETTINGS_LEVEL ${ECM_GLOBAL_FIND_VERSION}) + set(KDE_COMPILERSETTINGS_LEVEL "${ECM_GLOBAL_FIND_VERSION}") else() - if(KDE_COMPILERSETTINGS_LEVEL VERSION_GREATER ${ECM_GLOBAL_FIND_VERSION}) + if(KDE_COMPILERSETTINGS_LEVEL VERSION_GREATER "${ECM_GLOBAL_FIND_VERSION}") message(FATAL "KDE_COMPILERSETTINGS_LEVEL cannot be newer than the min. required ECM version.") endif() endif() |