[cmake-developers] [CMake 0015111]: “File reference” warnings when building a CMake project with Xcode 6

Mantis Bug Tracker mantis at public.kitware.com
Tue Aug 26 09:32:41 EDT 2014


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  
                 
======================================================================



More information about the cmake-developers mailing list