Extracted repeated cmake instruction block
Fixing iOS clang warnings, part 1