Apply patch by ryandesign , fixes #9

This commit is contained in:
Marianne Gagnon 2015-05-31 16:10:49 -04:00
parent ef5df0baf5
commit 8eb915a019
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ void collectDependencies(std::string filename)
if( lines[n].find(".framework") != std::string::npos ) continue; //Ignore frameworks, we can not handle them if( lines[n].find(".framework") != std::string::npos ) continue; //Ignore frameworks, we can not handle them
addDependency( // trim useless info, keep only library name addDependency( // trim useless info, keep only library name
lines[n].substr(1, lines[n].find(" (") ) lines[n].substr(1, lines[n]rfind(" (") - 1)
); );
} }
} }
@ -120,7 +120,7 @@ void collectSubDependencies()
if( lines[n].find(".framework") != std::string::npos ) continue; //Ignore frameworks, we can not handle them if( lines[n].find(".framework") != std::string::npos ) continue; //Ignore frameworks, we can not handle them
addDependency( // trim useless info, keep only library name addDependency( // trim useless info, keep only library name
lines[n].substr(1, lines[n].find(" (") ) lines[n].substr(1, lines[n]rfind(" (") - 1)
); );
}//next }//next
}//next }//next