Skip to content

Commit d394601

Browse files
committed
Merge pull request #1450 from mshabunin:fix-ovis-ogre-linux
2 parents 09fd78e + 2c97815 commit d394601

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modules/ovis/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ set(the_description "OGRE 3D Visualiser.")
33
find_package(OGRE 1.10 QUIET)
44

55
if(NOT OGRE_FOUND)
6-
message(STATUS "Module opencv_ovis disabled because OGRE3D was not found.")
7-
ocv_module_disable(ovis)
6+
message(STATUS "Module opencv_ovis disabled because OGRE3D was not found")
7+
ocv_module_disable(ovis)
8+
elseif(OGRE_VERSION VERSION_LESS 1.10)
9+
message(STATUS "Module opencv_ovis disabled because OGRE3D version is less than 1.10 (${OGRE_VERSION})")
10+
ocv_module_disable(ovis)
811
endif()
912

1013
include_directories(${OGRE_INCLUDE_DIRS}})
1114
link_directories(${OGRE_LIBRARY_DIRS})
1215

1316
ocv_define_module(ovis opencv_core opencv_imgproc opencv_calib3d WRAP python)
1417
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wunused-parameter)
15-
ocv_target_link_libraries(${the_module} ${OGRE_LIBRARIES})
18+
ocv_target_link_libraries(${the_module} ${OGRE_LIBRARIES})

0 commit comments

Comments
 (0)