Skip to content

Commit 82f3da5

Browse files
committed
Merge pull request #2292 from huangqinjin:master
2 parents 83e98d2 + db64787 commit 82f3da5

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

modules/ovis/CMakeLists.txt

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

3-
find_package(OGRE 1.10 QUIET)
3+
find_package(OGRE QUIET)
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.10 OR OGRE_VERSION VERSION_GREATER 2.0)
8+
elseif(OGRE_VERSION VERSION_LESS 1.11.5 OR OGRE_VERSION VERSION_GREATER 2.0)
99
message(STATUS "Module opencv_ovis disabled because of incompatible OGRE3D version (${OGRE_VERSION})")
1010
ocv_module_disable(ovis)
11-
elseif(OGRE_VERSION VERSION_GREATER 1.10) # we need C++11 for OGRE 1.11
11+
else() # we need C++11 for OGRE 1.11
1212
if(MSVC)
1313
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Qstd=c++11")
1414
else()
1515
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
1616
endif()
1717
endif()
1818

19-
if(OGRE_VERSION VERSION_LESS 1.10.10)
20-
message(WARNING "opencv_ovis: Ogre >= 1.10.10 recommended for interactive windows")
21-
endif()
22-
2319
include_directories(${OGRE_INCLUDE_DIRS})
2420
link_directories(${OGRE_LIBRARY_DIRS})
2521

0 commit comments

Comments
 (0)