Somewhere starting in Xcode 4 or 5, Apple added a Team dropdown to the
General tab of a target. The developer can select a development team there,
which results in a bunch of useful things, most importantly: Xcode
automatically updates the devices list in the Member Center and the
currently fitting iOS Team Provisioning Profile. This creatly simplyfies
management of development devices.

It would be very nice if CMake supported setting this option. A look at the
project.pbxproj reveals that this setting is stored in the 'attributes' in
the PBXProject section:

3B69B74659794A7B9F0C2B71 /* Project object */ = {
    isa = PBXProject;
    attributes = {
        BuildIndependentTargetsInParallel = YES;
        TargetAttributes = {
            26E66AE0CD2341D58DBF6E8B = {
                DevelopmentTeam = <10 character Team ID>;
            };
        };
    };
    ....

In the CMake source I noticed that 'BuildIndependentTargetsInParallel' is
already getting set. This could be extendet to add the 'TargetAttributes'
section. Note that the ID used in there (26E66AE0CD2341D58DBF6E8B in the
example) is the ID of the 'main' target, i.e. the one with the name of the
project.

The 10 character Team ID can be found by the developer in the member center
under Your Account. This could be set with a CMake flag.

Thanks,
Fabian
-- 

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