Skip to content

Commit

Permalink
Remove patch number from Ogre2 version
Browse files Browse the repository at this point in the history
- Require matching of major and minor versions only.

Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring committed May 26, 2024
1 parent 7abda5c commit cd13f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gz-waves/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ gz_find_package(GzOGRE VERSION 1.9.0
# Find OGRE2: first try to find OGRE2 built with PlanarReflections support and
# fallback to look for OGRE2 without it. Both seems to works for gz-rendering.
# See https://github.com/gazebosim/gz-rendering/issues/597
gz_find_package(GzOGRE2 VERSION 2.3.1
gz_find_package(GzOGRE2 VERSION 2.3
COMPONENTS HlmsPbs HlmsUnlit Overlay PlanarReflections
PRIVATE_FOR ogre2
QUIET)

if ("${OGRE2-PlanarReflections}" STREQUAL "OGRE2-PlanarReflections-NOTFOUND")
message(STATUS "PlanarReflections component was not found. Try looking without it:")
gz_find_package(GzOGRE2 VERSION 2.3.1
gz_find_package(GzOGRE2 VERSION 2.3
COMPONENTS HlmsPbs HlmsUnlit Overlay
REQUIRED_BY ogre2
PRIVATE_FOR ogre2)
Expand Down

0 comments on commit cd13f42

Please sign in to comment.