The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15111 
====================================================================== 
Reported By:                normanius
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15111
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-08-26 09:32 EDT
Last Modified:              2014-08-26 09:32 EDT
====================================================================== 
Summary:                    “File reference” warnings when building a CMake
project with Xcode 6
Description: 
Xcode 6.0 (Beta 4) newly warns the developer if a source file is member of
multiple groups/targets.

CMake, in order to work properly, adds the main source file to several targets:
my_target_name, ALL_BUILD, ZERO_CHECK. Hence, I get the following superfluous
warning messages:

2014-08-26 13:47:48.406 xcodebuild[14099:1007] warning: The file reference for
"CMakeLists.txt" is a member of multiple groups ("ALL_BUILD" and "ZERO_CHECK");
this indicates a malformed project. Only the membership in one of the groups
will be preserved (but membership in targets will be unaffected). If you want a
reference to the same file in more than one group, please add another reference
to the same path.

2014-08-26 13:47:48.406 xcodebuild[14099:1007] warning: The file reference for
"CMakeLists.txt" is a member of multiple groups ("ZERO_CHECK" and "example");
this indicates a malformed project. Only the membership in one of the groups
will be preserved (but membership in targets will be unaffected). If you want a
reference to the same file in more than one group, please add another reference
to the same path.

Steps to Reproduce: 
The problem is reproducible with the minimal example attached to this bug
report.

cd minimal_example_xcode6_problem
mkdir build && cd build
cmake -G Xcode ..
xcodebuild

Additional Information: 
- Xcode 6.0 (6A267n), it's a beta version
- Warning does not show up for Xcode 5.1.1
- Warning does not show up if I remove the duplicated entries in the
proejct.pbxproj file for the targets ALL_BUILD and ZERO_CHECK.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-08-26 09:32 normanius      New Issue                                    
2014-08-26 09:32 normanius      File Added: minimal_example_xcode6_problem.zip  
                 
======================================================================

-- 

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