File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,16 @@ set(the_description "OGRE 3D Visualiser.")
3
3
find_package (OGRE 1.10 QUIET )
4
4
5
5
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 )
8
11
endif ()
9
12
10
13
include_directories (${OGRE_INCLUDE_DIRS} } )
11
14
link_directories (${OGRE_LIBRARY_DIRS} )
12
15
13
16
ocv_define_module (ovis opencv_core opencv_imgproc opencv_calib3d WRAP python )
14
17
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} )
You can’t perform that action at this time.
0 commit comments