From 54d245106943d988782d3862c8cb862faa69e133 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sat, 18 Dec 2021 19:58:28 +0300 Subject: [PATCH] sdlchecks.cmake: Small tune by @sezero --- cmake/sdlchecks.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index 919a71f33..b472a598c 100644 --- a/cmake/sdlchecks.cmake +++ b/cmake/sdlchecks.cmake @@ -647,9 +647,8 @@ macro(CheckWayland) string(REPLACE "wayland-scanner " "" WAYLAND_SCANNER_VERSION ${WAYLAND_SCANNER_VERSION}) if(CMAKE_VERSION VERSION_LESS 3.7.0) - string(COMPARE GREATER ${WAYLAND_SCANNER_VERSION} "1.15.0" WAYLAND_SCANNER_1_15_FOUND_G) - string(COMPARE EQUAL ${WAYLAND_SCANNER_VERSION} "1.15.0" WAYLAND_SCANNER_1_15_FOUND_E) - if(WAYLAND_SCANNER_1_15_FOUND_G OR WAYLAND_SCANNER_1_15_FOUND_E) + string(COMPARE LESS ${WAYLAND_SCANNER_VERSION} "1.15.0" WAYLAND_SCANNER_1_15_NOTFOUND) + if(NOT WAYLAND_SCANNER_1_15_NOTFOUND) set(WAYLAND_SCANNER_1_15_FOUND TRUE) endif() else()