FIX: switch to stable_sort to avoid crash

This commit is contained in:
Bill Hoffman 2005-03-01 17:32:25 -05:00
parent 058b07b5c7
commit 87e6c54e26
1 changed files with 3 additions and 1 deletions

View File

@ -187,7 +187,9 @@ void cmOrderLinkDirectories::OrderPaths(std::vector<cmStdString>&
{
cmOrderLinkDirectoriesCompare comp;
comp.This = this;
std::sort(orderedPaths.begin(), orderedPaths.end(), comp);
// for some reason when cmake is run on InsightApplication
// if std::sort is used here cmake crashes, but stable_sort works
std::stable_sort(orderedPaths.begin(), orderedPaths.end(), comp);
}
//-------------------------------------------------------------------