sdlchecks.cmake: Small tune by @sezero
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
index 919a71f..b472a59 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()