File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ if(IOS)
92
92
list (APPEND imgcodecs_srcs ${CMAKE_CURRENT_LIST_DIR} /src/ios_conversions.mm )
93
93
list (APPEND IMGCODECS_LIBRARIES "-framework Accelerate" "-framework CoreGraphics" "-framework QuartzCore" "-framework AssetsLibrary" )
94
94
endif ()
95
+ if (APPLE_FRAMEWORK )
96
+ list (APPEND IMGCODECS_LIBRARIES "-framework UIKit" )
97
+ endif ()
95
98
96
99
if (UNIX )
97
100
#these variables are set by CHECK_MODULE macro
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ if(IOS)
210
210
${CMAKE_CURRENT_LIST_DIR} /src/cap_ios_video_camera.mm )
211
211
212
212
list (APPEND VIDEOIO_LIBRARIES "-framework Accelerate" "-framework AVFoundation" "-framework CoreGraphics" "-framework CoreImage" "-framework CoreMedia" "-framework CoreVideo" "-framework QuartzCore" "-framework AssetsLibrary" )
213
- if (APPLE_FRAMEWORK AND BUILD_SHARED_LIBS )
213
+ if (APPLE_FRAMEWORK )
214
214
list (APPEND VIDEOIO_LIBRARIES "-framework UIKit" )
215
215
endif ()
216
216
endif ()
You can’t perform that action at this time.
0 commit comments