Skip to content

Commit c7b27f8

Browse files
committed
ovis: allow using OGRE devel
only compatible versions support CMake CONFIG mode. Use that to make check more robust.
1 parent fc0cec6 commit c7b27f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ovis/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
set(the_description "OGRE 3D Visualiser.")
22

3-
find_package(OGRE QUIET)
3+
find_package(OGRE QUIET CONFIG)
44

55
if(NOT OGRE_FOUND)
66
message(STATUS "Module opencv_ovis disabled because OGRE3D was not found")
77
ocv_module_disable(ovis)
8-
elseif(OGRE_VERSION VERSION_LESS 1.11.5 OR OGRE_VERSION VERSION_GREATER 2.0)
8+
elseif(OGRE_VERSION VERSION_LESS 1.11.5)
99
message(STATUS "Module opencv_ovis disabled because of incompatible OGRE3D version (${OGRE_VERSION})")
1010
ocv_module_disable(ovis)
1111
else() # we need C++11 for OGRE 1.11

0 commit comments

Comments
 (0)