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

Cody Krieger cody at evaautomation.com
Thu Aug 27 11:30:10 EDT 2015


> On Aug 27, 2015, at 6:39 AM, Brad King <brad.king at kitware.com> wrote:
> 
> On 08/25/2015 01:00 PM, Cody Krieger wrote:
>>> //  Created by Joe Schmoe on 8/25/15.
>>> //  Copyright (c) 2015 My Company, Inc. All rights reserved.
> 
> CMake-generated Xcode project files are not meant for redistribution.
> What other effects does such a notice have?  Does it appear in the
> IDE somewhere?

The organization name setting for a given Xcode project is primarily (only?) used to fill out copyright notices in file templates for various languages. It doesn't have any other effects to my knowledge. The only official documentation I can find seems to agree with me (https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html <https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html>):

“The organization name is an attribute of the Xcode project and is used in boilerplate text throughout your project folder. For example, the organization name is used in the source and header file copyright strings.”

To understand the motivation behind this change: my team's workflow generally involves creating new source files from within Xcode (and then adding those files to a target in the relevant CMakeLists.txt file) since it handily populates the new files with the aforementioned header comments—and with this change, we no longer have to manually add the copyright string. (We certainly don't intend to redistribute the CMake-generated Xcode project files.)

>> I tried to adhere to the surrounding coding style and whatnot.
>> Let me know if anything needs massaging.
> 
> The change itself looks good.  Please also add a
> 
> Help/variable/CMAKE_XCODE_ORGANIZATIONNAME.rst
> 
> file with documentation.  Also reference it from
> 
> Help/manual/cmake-variables.7.rst
> 
> Thanks,
> -Brad

Updated patch attached.

Thanks!
Cody

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150827/ee7e2fee/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0001-Add-support-for-Xcode-ORGANIZATIONNAME-project-se.patch
Type: application/octet-stream
Size: 2646 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150827/ee7e2fee/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150827/ee7e2fee/attachment-0003.html>


More information about the cmake-developers mailing list