Skip to content

Commit

Permalink
ogre versions lower than 1.9 can not be detected since find_package w…
Browse files Browse the repository at this point in the history
…ill skip them

Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
  • Loading branch information
j-rivero committed Oct 15, 2021
1 parent d760afb commit ad0b350
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Expand Up @@ -66,12 +66,12 @@ ign_find_package(IgnOGRE VERSION 1.9.0
REQUIRED_BY ogre
PRIVATE_FOR ogre)

# Ogre versions different than 1.9.x are not officialy supported.
# Ogre versions greater than 1.9.x are not officialy supported.
# 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_LESS 1.9.0) OR (${OGRE_VERSION} VERSION_GREATER_EQUAL 1.10.0))
IGN_BUILD_WARNING("Ogre 1.x versions different than 1.9 are not officially supported."
if (${OGRE_VERSION} VERSION_GREATER_EQUAL 1.10.0)
IGN_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")
endif()
Expand Down

0 comments on commit ad0b350

Please sign in to comment.