Hello all,<div><br></div><div>(See below for context)</div><div><br></div><div>To solve the issue, I wish to reuse the object ID for certain properties[1], allowing the foo.pbxuser file to stay valid across CMake invocations. I modified the cmXCodeObject::GetId() function to generate the ID of the object, using either the name property or the comment property, depending on which one is available. For all other object types (not listed in [1]), I generate an unique object ID in the same way as before.</div>
<div><br></div><div>The patch is not really finished, just a quick proof of concept (but very trivial :) ). Anyone at @Kitware think this sounds interesting enough to get into a release? Let me know and I'll polish up the patch and file a bug if deemed necessary.</div>
<div><br></div><div>Merry xmas (And again, thanks for a great product!)</div><div>/Johan</div><div>[1]</div><div><div>PBXProject, PBXNativeTarget, PBXApplicationReference, PBXExecutableFileReference,PBXLibraryReference,PBXToolTarget,PBXLibraryTarget, PBXAggregateTarget,</div>
</div><div><br></div><div><div class="gmail_quote">On Fri, Dec 17, 2010 at 9:17 AM, Johan Björk <span dir="ltr"><<a href="mailto:phb@spotify.com">phb@spotify.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi everyone,<div><br></div><div>I haven't been able to find much information on this topic, so any suggestions would be greatly appreciated. When CMake regenerates the XCode project files, it correctly saves the user settings (foo.pbxuser) (contains things like executable arguments, environment variables and the such), however, since the GUIDs in the main project file changes, the pbxuser file be cleaned by XCode as soon as you reopen the project.</div>

<div><br></div><div>First off, anyone know of any way to be able to keep the user settings? If not, anyone knows if this has been brought up before and if someone has attempted to fix it?</div><div><br></div><div>This is with XCode 3.2.5 and CMake 2.8.3</div>

<div><br></div><div>Thanks for any insight</div><div>/Johan</div><font color="#888888"><div><br></div>
</font></blockquote></div><br></div>