diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b41bd6c65..c3451ba8fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -188,7 +188,7 @@ set(HAVE_INPUT FALSE) set(HAVE_INPUT_1_9 FALSE) if (Libinput_FOUND AND UDEV_FOUND) set(HAVE_INPUT TRUE) - if(Libinput_VERSION VERSION_GREATER_EQUAL "1.9.0") + if(${Libinput_VERSION} VERSION_GREATER "1.9.0" OR ${Libinput_VERSION} VERSION_EQUAL "1.9.0") set(HAVE_INPUT_1_9 TRUE) endif() endif()