“File reference” warnings when building a CMake project with Xcode 6
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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.
Edited by Brad King