Commit 54d245106943d988782d3862c8cb862faa69e133

Wohlstand 2021-12-18T19:58:28

sdlchecks.cmake: Small tune by @sezero

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()