Commit 2c97815a authored by Maksim Shabunin's avatar Maksim Shabunin

ovis: fixed OGRE search in Ubuntu

parent 09fd78e4
......@@ -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}})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment