View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013516CMakeCMakepublic2012-09-05 06:102016-06-10 14:31
ReporterFrank Bergmann 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS XOS Version> 10.5
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0013516: When generating Xcode Projects certain warnings are always enabled (-Wmost)
DescriptionLooking at cmGlobalXCodeGenerator.cxx, I find that the option "-Wmost" is always enabled. It would be better if this option would be configurable. When this option is specified, all the fine grained settings that can be set in Xcode are always overwritten. Because of the way that this option is added in the generator, no post processing step will allow me to remove them:

                             this->CreateString("NO"));
  if (this->XcodeVersion >= 30)
    {
    cmXCodeObject *group = this->CreateObject(cmXCodeObject::OBJECT_LIST);
    group->AddObject(this->CreateString("-Wmost"));
    group->AddObject(this->CreateString("-Wno-four-char-constants"));
    group->AddObject(this->CreateString("-Wno-unknown-pragmas"));
    buildSettings->AddAttribute("WARNING_CFLAGS", group);
    }
  else
    {
    buildSettings->AddAttribute("WARNING_CFLAGS",
                                this->CreateString(
                                  "-Wmost -Wno-four-char-constants"
                                  " -Wno-unknown-pragmas"));
    }
Steps To Reproduce- take any cmake project and generate xcode projects with it. they all will have WARNING_CFLAGS set with -Wmost.
- even warnings turned off in xcode (like functions hiding overloaded virtual functions) will still be issued
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042113)
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2012-09-05 06:10 Frank Bergmann New Issue
2016-06-10 14:28 Kitware Robot Note Added: 0042113
2016-06-10 14:28 Kitware Robot Status new => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team