Xcode: cmake does not correctly enable parallelised builds for command-line builds
The Xcode generator correctly sets BuildIndependentTargetsInParallel
to YES
, but it seems that the objectVersion
parameter needs to be increased for this to correctly take effect:
- The current value is
46
: https://gitlab.kitware.com/cmake/cmake/-/blob/v3.17.0/Source/cmGlobalXCodeGenerator.cxx#L3489 - Xcode 14.3 uses a value of
54
.
This setting needs to be set to a value of at least 53
to take effect in Xcode 14.3.
I cross-checked this with Xcode 14.2 on macOS 12.6.4 with the same results.