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

2015-08-25 Thread Cody Krieger
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



0001-Add-support-for-Xcode-ORGANIZATIONNAME-project-setti.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

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

2015-08-27 Thread Cody Krieger
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 theIDE 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):“Theorganization nameis an attribute of the Xcode project and is used in boilerplate text throughout your project folder. For example, the organizationname 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.rstfile with documentation. Also reference it from Help/manual/cmake-variables.7.rstThanks,-BradUpdated patch attached.Thanks!Cody

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