On Aug 27, 2015, at 6:39 AM, Brad King <brad.k...@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):

“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

Attachment: v2-0001-Add-support-for-Xcode-ORGANIZATIONNAME-project-se.patch
Description: Binary data

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to