MantisBT - CMake
View Issue Details
0013516CMakeCMakepublic2012-09-05 06:102016-06-10 14:31
Frank Bergmann 
Kitware Robot 
normalminoralways
closedmoved 
OS X> 10.5
CMake 2.8.9 
 
0013516: When generating Xcode Projects certain warnings are always enabled (-Wmost)
Looking 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"));
    }
- 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
No tags attached.
Issue History
2012-09-05 06:10Frank BergmannNew Issue
2016-06-10 14:28Kitware RobotNote Added: 0042113
2016-06-10 14:28Kitware RobotStatusnew => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042113)
Kitware Robot   
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.