Superbuild does not detect system OpenCV
Description
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ CMake Deprecation Warning at CMakeLists.txt:36 (cmake_policy):
2 │ The OLD behavior for policy CMP0046 will be removed from a future version
3 │ of CMake.
4 │
5 │ The cmake-policies(7) manual explains that the OLD behaviors of all
6 │ policies are deprecated and that a policy should be set to OLD only under
7 │ specific short-term circumstances. Projects should be ported to the NEW
8 │ behavior and not rely on setting a policy to OLD.
9 │
10 │
11 │ CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
12 │ The OLD behavior for policy CMP0054 will be removed from a future version
13 │ of CMake.
14 │
15 │ The cmake-policies(7) manual explains that the OLD behaviors of all
16 │ policies are deprecated and that a policy should be set to OLD only under
17 │ specific short-term circumstances. Projects should be ported to the NEW
18 │ behavior and not rely on setting a policy to OLD.
19 │
20 │
21 │ CMake Error at CMake/FindOpenCV.cmake:50 (message):
22 │ /home/grayshade/superbuild_install/include/opencv2/opencv.hpp does not
23 │ exists. Make sure you have opencv 2.3 or higher. We had searched in
24 │ Call Stack (most recent call first):
25 │ Modules/ThirdParty/OpenCV/otb-module-init.cmake:21 (find_package)
26 │ CMake/OTBModuleEnablement.cmake:394 (include)
27 │ CMakeLists.txt:349 (include)
Steps to reproduce
Configuration information
Arch Linux, develop
branch + !239 (merged).
I have these files:
opencv /usr/share/opencv/OpenCVConfig-version.cmake
opencv /usr/share/opencv/OpenCVConfig.cmake
opencv /usr/share/opencv/OpenCVModules-release.cmake
opencv /usr/share/opencv/OpenCVModules.cmake