The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=13516 ====================================================================== Reported By: Frank Bergmann Assigned To: ====================================================================== Project: CMake Issue ID: 13516 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2012-09-05 06:10 EDT Last Modified: 2012-09-05 06:10 EDT ====================================================================== Summary: When generating Xcode Projects certain warnings are always enabled (-Wmost) Description: 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")); } 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 ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-09-05 06:10 Frank Bergmann New Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers