Ask Your Question

Revision history [back]

If you compiled OpenCV as a static library, before find_package( OpenCV REQUIRED ) add set(OpenCV_STATIC ON):

set(OpenCV_STATIC ON)
find_package( OpenCV REQUIRED )