From b5394e96005b7c2e285eb34196c27555b0ba3a7a Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 10 Jun 2009 13:02:18 -0400 Subject: [PATCH] BUG: Avoid std::unique algorithm on VMS The Compaq compiler's std::unique algorithm followed by deletion of the extra elements seems to crash. For now we'll accept the duplicate dependencies on this platform. --- Source/cmGlobalUnixMakefileGenerator3.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index ca4c1aa33..2a9739887 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -303,9 +303,11 @@ void cmGlobalUnixMakefileGenerator3::WriteMainCMakefile() } // Sort the list and remove duplicates. std::sort(lfiles.begin(), lfiles.end(), std::less()); +#if !defined(__VMS) // The Compaq STL on VMS crashes, so accept duplicates. std::vector::iterator new_end = std::unique(lfiles.begin(),lfiles.end()); lfiles.erase(new_end, lfiles.end()); +#endif // reset lg to the first makefile lg = static_cast(this->LocalGenerators[0]);