Skip to content

Commit

Permalink
Remove hard-dependency on Ogre1
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <louise@openrobotics.org>
  • Loading branch information
chapulina committed Jan 6, 2022
1 parent 9b0c166 commit 1f7164b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,7 @@ set(IGN_TRANSPORT_VER ${ignition-transport8_VERSION_MAJOR})

#--------------------------------------
# Find ignition-rendering
# TODO(chapulina) Remove this once ign-rendering exports the variable
# https://github.com/ignitionrobotics/ign-rendering/issues/360
if ((NOT ${CMAKE_VERSION} VERSION_LESS 3.11) AND (NOT OpenGL_GL_PREFERENCE))
set(OpenGL_GL_PREFERENCE "GLVND")
endif()
ign_find_package(ignition-rendering3 REQUIRED COMPONENTS ogre VERSION 3.5.0)
ign_find_package(ignition-rendering3 REQUIRED VERSION 3.5.0)
set(IGN_RENDERING_VER ${ignition-rendering3_VERSION_MAJOR})

#--------------------------------------
Expand Down

0 comments on commit 1f7164b

Please sign in to comment.