From 4f167f3dc3fe4af910a987904146a9d72a01a96c Mon Sep 17 00:00:00 2001 From: Martin Pecka Date: Sun, 18 Sep 2022 03:06:18 +0200 Subject: [PATCH] Fix build in case no suitable OGRE is found Signed-off-by: Martin Pecka --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 781e05dd5..bc03698e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,7 +84,7 @@ gz_find_package(GzOGRE VERSION 1.9.0 # Display a warning for the users on this setup unless they provide # USE_UNOFFICIAL_OGRE_VERSIONS flag if (NOT USE_UNOFFICIAL_OGRE_VERSIONS) - if (${OGRE_VERSION} VERSION_GREATER_EQUAL 1.10.0) + if (OGRE_VERSION VERSION_GREATER_EQUAL 1.10.0) GZ_BUILD_WARNING("Ogre 1.x versions greater than 1.9 are not officially supported." "The software might compile and even work but support from upstream" "could be reduced to accepting patches for newer versions")