[CMake] Mac OS. Cmake changes it's behaviout when building framework for iOS simulator

Gregor Jasny gjasny at googlemail.com
Fri Feb 3 07:59:22 EST 2017


Hello,

On 02/02/2017 16:15, Сергей Бойцов wrote:
> Hello.
> I'm looking for some help cause i have faced a really strange problem
> with building frameworks on Mac OS
> So i have:
>
> Mac OS X : el captain
> Xcode 8.0
> CMake 3.3.2 [1],
> CMake 3.4.5 [2],
> CMake 3.5-3.6 [3]

> CMake [1] produced correct framework
> CMake [2] produced incorrect Version folder that points to C but no C
> folder is produced
> CMake [3] produced no Version folder at all

In contrast to macOS bundles the iOS ones have a more flattened 
structure without Version links:

https://developer.apple.com/library/content/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1

See also https://cmake.org/Bug/view.php?id=15833

So the CMake 3.5/3.6 behavior is the desired one. CMake versions before 
were buggy in that regard.

Thanks,
Gregor


More information about the CMake mailing list