diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-12-04 22:23:55 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-12-04 22:26:37 +0300 |
commit | dfca1e14605f4318c8e20acead4a06c38d3d435b (patch) | |
tree | a44d30d4a8b9b978744290ed6333456d8f148184 /CMakeLists.txt | |
parent | 1791697d4337eecf6a6007772b165b9142e7fcc1 (diff) |
CMake: disable QuickTime with macOS SDK 10.12+, no longer supported by Apple.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index afc1d9d5872..8055f4fd3e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -628,6 +628,12 @@ if(APPLE) # to silence sdk not found warning, just overrides CMAKE_OSX_SYSROOT set(CMAKE_XCODE_ATTRIBUTE_SDKROOT macosx${OSX_SYSTEM}) endif() + + # QuickTime framework is no longer available in SDK 10.12+ + if(WITH_CODEC_QUICKTIME AND ${OSX_SYSTEM} VERSION_GREATER 10.11) + set(WITH_CODEC_QUICKTIME OFF) + message(STATUS "QuickTime not supported by SDK ${OSX_SYSTEM}, disabling WITH_CODEC_QUICKTIME") + endif() endif() if(OSX_SYSTEM MATCHES 10.9) |