mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 20:49:41 +00:00
FIX: switch to stable_sort to avoid crash
This commit is contained in:
parent
058b07b5c7
commit
87e6c54e26
@ -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);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user