[Digikam-devel] Review Request 125381: Fix OpenCV finding for v3 with disabled ENABLE_OPENCV3

Dāvis Mosāns davispuh at gmail.com
Thu Sep 24 18:37:35 BST 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125381/
-----------------------------------------------------------

Review request for Digikam.


Repository: digikam


Description
-------

When have OpenCV v3 but ENABLE_OPENCV3 isn't enabled then CMake will fail to find OpenCV with message

-- Great, found OpenCV on the first try.
-- OpenCV Root directory is: /usr/share/opencv
-- OpenCV: Found version 3.0.0 (required: 2.4.9)
-- OpenCV headers: /usr/include/opencv;/usr/include
-- OpenCV libs   : opencv_core;opencv_highgui;opencv_objdetect;opencv_imgproc
-- ENABLE_OPENCV3 option is disabled and OpenCV >= 3.0.0 have been found. **Enabled ENABLE_OPENCV3**
CMake Error at cmake/modules/MacroUtils.cmake:44 (message):
   libopencv is needs. You need to install the libopencv (version >= 2.4.9) development package.
Call Stack (most recent call first):
   CMakeLists.txt:425 (PRINT_LIBRARY_STATUS)


For this case just enable ENABLE_OPENCV3


Diffs
-----

  CMakeLists.txt 94d5855332f1a4ecf3f7bd5117dff7d56810ff31 

Diff: https://git.reviewboard.kde.org/r/125381/diff/


Testing
-------

It finds OpenCV


Thanks,

Dāvis Mosāns

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20150924/f863729a/attachment.html>


More information about the Digikam-devel mailing list