File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
set (the_description "OGRE 3D Visualiser." )
2
2
3
- find_package (OGRE 1.10 QUIET )
3
+ find_package (OGRE QUIET )
4
4
5
5
if (NOT OGRE_FOUND )
6
6
message (STATUS "Module opencv_ovis disabled because OGRE3D was not found" )
7
7
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 )
9
9
message (STATUS "Module opencv_ovis disabled because of incompatible OGRE3D version (${OGRE_VERSION} )" )
10
10
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
12
12
if (MSVC )
13
13
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Qstd=c++11" )
14
14
else ()
15
15
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
16
16
endif ()
17
17
endif ()
18
18
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
-
23
19
include_directories (${OGRE_INCLUDE_DIRS} )
24
20
link_directories (${OGRE_LIBRARY_DIRS} )
25
21
You can’t perform that action at this time.
0 commit comments