Automatically codesign all executables and dynamic libraries if a
codesigning identity is given (via LLVM_CODESIGNING_IDENTITY). This
option is darwin only for now.
Also update platforms/iOS.cmake to pick up the right versions of
codesign and codesign_allocate.
I am way too late with this, but shouldn't it be set(CMAKE_CODESIGN "xcrun codesign") to avoid getting a list "xcrun;codesign"?