[cmake-developers] [CMake 0013802]: set_property doesn't work for CMAKE_XCODE_ATTRIBUTE_
Mantis Bug Tracker
mantis at public.kitware.com
Wed Dec 19 07:21:52 EST 2012
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=13802
======================================================================
Reported By: tzeH
Assigned To:
======================================================================
Project: CMake
Issue ID: 13802
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-12-19 07:21 EST
Last Modified: 2012-12-19 07:21 EST
======================================================================
Summary: set_property doesn't work for CMAKE_XCODE_ATTRIBUTE_
Description:
These two things don't do the same although they should:
set(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvmgcc42")
set_property(GLOBAL PROPERTY CMAKE_XCODE_ATTRIBUTE_GCC_VERSION
"com.apple.compilers.llvmgcc42")
The first line works, the second line doesn't.
Additional Information:
The code for this is in cmGlobalXCodeGenerator.cxx:
void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
cmXCodeObject* buildSettings,
const char* configName)
{
...
cmPropertyMap const& props = target.GetProperties();
for(cmPropertyMap::const_iterator i = props.begin(); i != props.end(); ++i)
{
if(i->first.find("XCODE_ATTRIBUTE_") == 0)
{
buildSettings->AddAttribute(i->first.substr(16).c_str(),
this->CreateString(i->second.GetValue()));
}
}
...
}
I don't know enough about the objects and classes involved, but it seems there
is something wrong here and I hope this pointer will help to fix it.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-12-19 07:21 tzeH New Issue
======================================================================
More information about the cmake-developers
mailing list