From 60a318a24bd423d671bf2eeae13d1ba93110d9de Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Mon, 12 Jul 2021 11:23:46 +0200 Subject: 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 --- kde-modules/KDECompilerSettings.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kde-modules/KDECompilerSettings.cmake') 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() -- cgit v1.2.1