Skip to content

Commit

Permalink
FindIgnOGRE2: exclude ogre versions different than 2.x (#219)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero authored Apr 1, 2022
1 parent ca66305 commit fa268e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/FindIgnOGRE2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@
# VERSION 2.2.0
# COMPONENTS HlmsPbs HlmsUnlit Overlay)

# sanity check
# Sanity check: exclude OGRE1 project releasing versions in two ways:
# - Legacy in from using 1.x.y until 1.12.y series
# - Modern versions using X.Y.Z starting with 13.y.z
# Reduce valid versions to 2.x series
if (${IgnOGRE2_FIND_VERSION_MAJOR})
if (${IgnOGRE2_FIND_VERSION_MAJOR} VERSION_LESS "2")
if (${IgnOGRE2_FIND_VERSION_MAJOR} VERSION_LESS "2" OR
(${IgnOGRE2_FIND_VERSION_MAJOR} VERSION_GREATER_EQUAL "3")
set (OGRE2_FOUND false)
return()
endif()
Expand Down

0 comments on commit fa268e9

Please sign in to comment.