Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit a68aa0c

Browse files
Merge pull request #5 from headupinclouds/hunter-3.0.0-p7-qt-fix
Add WITH_QTKIT option so user can disable QTKIT use
2 parents 4af193e + 75f6bb8 commit a68aa0c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cmake/OpenCVFindLibsVideo.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,17 @@ if(WITH_AVFOUNDATION)
299299
endif()
300300

301301
# --- QuickTime ---
302+
OCV_OPTION(WITH_QTKIT "Use QTKit framework (if WITH_QUICKTIME == NO)" YES)
303+
302304
if (NOT IOS)
303305
if(WITH_QUICKTIME)
304306
set(HAVE_QUICKTIME YES)
305307
elseif(APPLE AND CMAKE_COMPILER_IS_CLANGCXX)
306-
set(HAVE_QTKIT YES)
308+
if(WITH_QTKIT)
309+
set(HAVE_QTKIT YES) # always YES
310+
else()
311+
set(HAVE_QTKIT NO) # force NO
312+
endif()
307313
endif()
308314
endif()
309315

0 commit comments

Comments
 (0)