diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-03-26 11:42:08 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-03-26 13:35:51 +0300 |
commit | a22471f1d1de3a91560d73e9aaa7823b05eff89e (patch) | |
tree | d0e3cfa86f94ef9d94f12f1e748ba38265be9274 /build_files/cmake/Modules/FindOpenImageDenoise.cmake | |
parent | f9590c8eaa1b35920c2bc4bd7e8e7e5af3951873 (diff) |
CMake: Fix macOS SDK detection with latest Xcode and macOS
Happens on macOS 10.15.4 and Xcode 11.4.
The reason of failure is caused by following factors:
- xcodebuild reports full semantic macOS SDK version 10.15.4
- The actual SDK file path will only include major and minor part
of the version (10.15, MacOSX10.15.sdk)
- Previous CMake code of ours expected direct match between SDK
version and file path.
The solution is to make our detection code a bit more flexible and
additionally check for major.minor macOS SDK version in the path.
Diffstat (limited to 'build_files/cmake/Modules/FindOpenImageDenoise.cmake')
0 files changed, 0 insertions, 0 deletions