summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cpack.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-11-20 23:56:36 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-11-20 23:56:36 (GMT)
commitddc052052b05d6daea0791efd2e1b97a9349a5e9 (patch)
treee4452d05e36f1083cd2a804334011dacd9af50ca /Source/CPack/cpack.cxx
parent8faf4e93801a025d4cb17d2ef12437e5554798b1 (diff)
downloadCMake-ddc052052b05d6daea0791efd2e1b97a9349a5e9.zip
CMake-ddc052052b05d6daea0791efd2e1b97a9349a5e9.tar.gz
CMake-ddc052052b05d6daea0791efd2e1b97a9349a5e9.tar.bz2
Always use the auto_ptr from cmsys.
This is for consistency throughout cmake. The cmsys version exists becaues uses of auto_ptr types as return types does not work with some implementations in ancient compilers.
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r--Source/CPack/cpack.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index b603585..0ba7322 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -27,7 +27,6 @@
#include <cmsys/CommandLineArguments.hxx>
#include <cmsys/SystemTools.hxx>
-#include <memory> // auto_ptr
//----------------------------------------------------------------------------
static const char * cmDocumentationName[][3] =
@@ -276,7 +275,7 @@ int main (int argc, char *argv[])
cminst.RemoveUnscriptableCommands();
cmGlobalGenerator cmgg;
cmgg.SetCMakeInstance(&cminst);
- std::auto_ptr<cmLocalGenerator> cmlg(cmgg.CreateLocalGenerator());
+ cmsys::auto_ptr<cmLocalGenerator> cmlg(cmgg.CreateLocalGenerator());
cmMakefile* globalMF = cmlg->GetMakefile();
bool cpackConfigFileSpecified = true;