[cmake-developers] [PATCH] Add support for Xcode ORGANIZATIONNAME project setting via CMAKE_XCODE_ORGANIZATIONNAME.

Cody Krieger cody at evaautomation.com
Tue Aug 25 13:00:53 EDT 2015


Hi all,

Using the Xcode project generator, there didn't seem to be a way to specify a project-level organization name, so I added the ability to do just that by setting CMAKE_XCODE_ORGANIZATIONNAME.

For example, if CMAKE_XCODE_ORGANIZATIONNAME is set to "My Company, Inc.," when you create new files within Xcode, you'll now end up with a header comment similar to the following:

> //                                                                                                                                                                                  
> //  Foo.cpp
> //  some-project
> //
> //  Created by Joe Schmoe on 8/25/15.
> //  Copyright (c) 2015 My Company, Inc. All rights reserved.
> //

Without CMAKE_XCODE_ORGANIZATIONNAME set (and without this patch), header comments look like this:

> //                                                                                                                                                                                  
> //  Foo.cpp
> //  some-project
> //
> //  Created by Joe Schmoe on 8/25/15.
> //
> //


I tried to adhere to the surrounding coding style and whatnot. Let me know if anything needs massaging.

Cheers,
Cody

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-Xcode-ORGANIZATIONNAME-project-setti.patch
Type: application/octet-stream
Size: 1394 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150825/0f2f205a/attachment.obj>


More information about the cmake-developers mailing list