Skip to content

rviz_ogre_vendor: fails to build due to compatibility with CMake < 3.5 has been removed from CMake. #1637

@zumbi

Description

@zumbi

When building rviz_ogre_vendor with newer CMake:

--- stderr: rviz_ogre_vendor                              
CMake Error at CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


gmake[2]: *** [CMakeFiles/ogre_vendor.dir/build.make:93: ogre_vendor-prefix/src/ogre_vendor-stamp/ogre_vendor-configure] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:153: CMakeFiles/ogre_vendor.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< rviz_ogre_vendor [41.2s, exited with code 2]

This is caused by vendored ogre_vendor version:

VCS_VERSION v1.12.10

this brings the minimum required version for CMake of 3.3.0 which causes issues with newer CMake.
https://github.com/OGRECave/ogre/blob/1316cf2cb8a1f9284aecc9225e5c775a168a491e/CMakeLists.txt#L17

I am not sure how best to fix this issue, either vendor latest ogre version and update patchset or use system provided library.

Thanks very much for your support.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions