sdlchecks.cmake: Small tune by @sezero

This commit is contained in:
Wohlstand 2021-12-18 19:58:28 +03:00 committed by Ozkan Sezer
parent 6c9907dd0e
commit 54d2451069

View file

@ -647,9 +647,8 @@ macro(CheckWayland)
string(REPLACE "wayland-scanner " "" WAYLAND_SCANNER_VERSION ${WAYLAND_SCANNER_VERSION}) string(REPLACE "wayland-scanner " "" WAYLAND_SCANNER_VERSION ${WAYLAND_SCANNER_VERSION})
if(CMAKE_VERSION VERSION_LESS 3.7.0) 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 LESS ${WAYLAND_SCANNER_VERSION} "1.15.0" WAYLAND_SCANNER_1_15_NOTFOUND)
string(COMPARE EQUAL ${WAYLAND_SCANNER_VERSION} "1.15.0" WAYLAND_SCANNER_1_15_FOUND_E) if(NOT WAYLAND_SCANNER_1_15_NOTFOUND)
if(WAYLAND_SCANNER_1_15_FOUND_G OR WAYLAND_SCANNER_1_15_FOUND_E)
set(WAYLAND_SCANNER_1_15_FOUND TRUE) set(WAYLAND_SCANNER_1_15_FOUND TRUE)
endif() endif()
else() else()