mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
BUG: Fixed crash when source file cannot be looked up correctly.
This commit is contained in:
@@ -128,10 +128,13 @@ bool cmSetSourceFilesPropertiesCommand::InitialPass(
|
||||
// get the source file
|
||||
cmSourceFile* sf =
|
||||
m_Makefile->GetOrCreateSource(args[i].c_str(), generated);
|
||||
// now loop through all the props and set them
|
||||
for (k = 0; k < propertyPairs.size(); k = k + 2)
|
||||
if(sf)
|
||||
{
|
||||
sf->SetProperty(propertyPairs[k].c_str(),propertyPairs[k+1].c_str());
|
||||
// now loop through all the props and set them
|
||||
for (k = 0; k < propertyPairs.size(); k = k + 2)
|
||||
{
|
||||
sf->SetProperty(propertyPairs[k].c_str(),propertyPairs[k+1].c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user