diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-03-01 22:32:25 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-03-01 22:32:25 (GMT) |
commit | 87e6c54e26fe866a592a66059e0531887396c22f (patch) | |
tree | 19224697f9f068f33d545a5f167fc6d2eba45663 /Source/cmOrderLinkDirectories.cxx | |
parent | 058b07b5c706c788358658e73810e6bd281c5c87 (diff) | |
download | CMake-87e6c54e26fe866a592a66059e0531887396c22f.zip CMake-87e6c54e26fe866a592a66059e0531887396c22f.tar.gz CMake-87e6c54e26fe866a592a66059e0531887396c22f.tar.bz2 |
FIX: switch to stable_sort to avoid crash
Diffstat (limited to 'Source/cmOrderLinkDirectories.cxx')
-rw-r--r-- | Source/cmOrderLinkDirectories.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmOrderLinkDirectories.cxx b/Source/cmOrderLinkDirectories.cxx index 802891d..86a7cbe 100644 --- a/Source/cmOrderLinkDirectories.cxx +++ b/Source/cmOrderLinkDirectories.cxx @@ -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); } //------------------------------------------------------------------- |