Merge pull request #1450 from mshabunin:fix-ovis-ogre-linux

pull/1453/head
Maksim Shabunin 8 years ago
commit d394601d95
  1. 7
      modules/ovis/CMakeLists.txt

@ -3,8 +3,11 @@ set(the_description "OGRE 3D Visualiser.")
find_package(OGRE 1.10 QUIET)
if(NOT OGRE_FOUND)
message(STATUS "Module opencv_ovis disabled because OGRE3D was not found.")
ocv_module_disable(ovis)
message(STATUS "Module opencv_ovis disabled because OGRE3D was not found")
ocv_module_disable(ovis)
elseif(OGRE_VERSION VERSION_LESS 1.10)
message(STATUS "Module opencv_ovis disabled because OGRE3D version is less than 1.10 (${OGRE_VERSION})")
ocv_module_disable(ovis)
endif()
include_directories(${OGRE_INCLUDE_DIRS}})

Loading…
Cancel
Save