[cmake-developers] Saving user settings with xcode generator
Johan Björk
phb at spotify.com
Sun Jan 30 16:55:06 EST 2011
Attached patch and comments to bug
http://public.kitware.com/Bug/view.php?id=11690
Is there some extra access rights needed to monitor an issue in the
Mantis bugtracker? I can't seem to find any button to do it :(
-Johan
On Mon, Dec 27, 2010 at 4:44 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> On 12/26/2010 5:45 PM, Johan Björk wrote:
>>
>> Hello all,
>>
>> (See below for context)
>>
>> 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.
>>
>> 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.
>>
>
> I would think a better approach would be to keep the guid's the same all the
> time. I think this is done with the VS projects. If you store them in the
> cache they will be preserved between runs of CMake.
>
>
>> Merry xmas (And again, thanks for a great product!)
>> /Johan
>> [1]
>> PBXProject, PBXNativeTarget, PBXApplicationReference,
>> PBXExecutableFileReference,PBXLibraryReference,PBXToolTarget,PBXLibraryTarget,
>> PBXAggregateTarget,
>>
>> On Fri, Dec 17, 2010 at 9:17 AM, Johan Björk <phb at spotify.com
>> <mailto:phb at spotify.com>> wrote:
>>
>> Hi everyone,
>>
>> 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.
>>
>> 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?
>>
>> This is with XCode 3.2.5 and CMake 2.8.3
>>
>> Thanks for any insight
>> /Johan
>>
>>
>>
>>
>> _______________________________________________
>> cmake-developers mailing list
>> cmake-developers at cmake.org
>> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
>
>
> --
> Bill Hoffman
> Kitware, Inc.
> 28 Corporate Drive
> Clifton Park, NY 12065
> bill.hoffman at kitware.com
> http://www.kitware.com
> 518 881-4905 (Direct)
> 518 371-3971 x105
> Fax (518) 371-4573
> _______________________________________________
> cmake-developers mailing list
> cmake-developers at cmake.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
>
More information about the cmake-developers
mailing list