mirror of https://github.com/encounter/SDL.git
sdlchecks.cmake: Small tune by @sezero
This commit is contained in:
parent
6c9907dd0e
commit
54d2451069
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue