<div dir="ltr">Hi,<div><br></div><div>We have successfully ported our build scripts to a cross-platform CMake setup recently but there is just one thing we could not get right. We have a PRELINK build phase that needs to execute before linking. This works for generated Visual Studio projects and make scripts but not for Xcode generated projects.</div><div>It appears that the generated Xcode "CMake PreLink Rules" build phase happens after the linker is executed.</div><div><br></div><div>I had a look at the source file for the Xcode generator (<a href="https://github.com/awakecoding/cmake/blob/master/Source/cmGlobalXCodeGenerator.cxx">https://github.com/awakecoding/cmake/blob/master/Source/cmGlobalXCodeGenerator.cxx</a>) and Xcode IDE configuration. I suspect it's not possible to get Xcode to run a pre-link command in the same manner as for the other generators on other platforms.</div><div>Is this correct? I appreciate if somebody can point me in the right direction.</div><div><br></div><div>Cheers,</div><div>Andy</div></div>