cmake: Fix compatiblity with cmake-3.5.2.
cmake-3.5.2 does not have VERSION_GREATER_EQUAL
or VERSION_LESS_EQUAL
.
Solarus by default requires cmake-3.1 or newer.
Error message for reference:
-- Found GLM: /usr/include (found version "0.9.9.4")
CMake Error at cmake/modules/FindGLM.cmake:55 (if):
if given arguments:
"GLM_VERSION_STRING" "VERSION_GREATER_EQUAL" "0.9.9.0" "AND" "GLM_VERSION_STRING" "VERSION_LESS_EQUAL" "0.9.9.3"
Unknown arguments specified
Call Stack (most recent call first):
cmake/AddDependencies.cmake:18 (find_package)
CMakeLists.txt:9 (include)
-- Configuring incomplete, errors occurred!
Edited by orbea