Merge pull request #1381 from srcejon/fix_1366

Call find_package for OpenCV on Windows for modatv
This commit is contained in:
Edouard Griffiths 2022-08-06 22:27:57 +02:00 committed by GitHub
commit 0e4c903790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -444,6 +444,8 @@ endif()
# unfortunately OpenCV library from windows doesn't set the cache option
if(WIN32)
find_package(OpenCV OPTIONAL_COMPONENTS core highgui imgproc imgcodecs videoio) # channeltx/modatv
set(OpenCV_INCLUDE_DIRS "${OpenCV_INCLUDE_DIRS}" CACHE INTERNAL "")
set(OpenCV_LIBS "${OpenCV_LIBS}" CACHE INTERNAL "")