mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Cleaned up macOS FFmpeg framework linking
I'm not sure why but CoreMedia, VideoToolbox, and AudioToolbox aren't being found by find_library, so I've converted framework imports to a standard link option. I really don't think this will be an issue given that this change will only ever apply to Apple platforms.
This commit is contained in:
parent
808a2e587a
commit
a61237f265
@ -221,12 +221,12 @@ if(APPLE)
|
||||
target_link_libraries(openmw ${COCOA_FRAMEWORK} ${IOKIT_FRAMEWORK})
|
||||
|
||||
if (FFmpeg_FOUND)
|
||||
find_library(COREVIDEO_FRAMEWORK CoreVideo)
|
||||
find_library(VDA_FRAMEWORK VideoDecodeAcceleration)
|
||||
target_link_libraries(openmw z ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK}
|
||||
"-framework VideoToolbox"
|
||||
"-framework AudioToolbox"
|
||||
"-framework CoreMedia")
|
||||
target_link_libraries(openmw z)
|
||||
target_link_options(openmw PRIVATE "LINKER:SHELL:-framework CoreVideo"
|
||||
"LINKER:SHELL:-framework CoreMedia"
|
||||
"LINKER:SHELL:-framework VideoToolbox"
|
||||
"LINKER:SHELL:-framework AudioToolbox"
|
||||
"LINKER:SHELL:-framework VideoDecodeAcceleration")
|
||||
endif()
|
||||
endif(APPLE)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user