From f131463e3d7d9281665cce69856ce1ef90327f9f Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 3 May 2006 15:17:09 -0400 Subject: [PATCH] BUG: fix CPack to use correct paths --- Source/CPack/cmCPackGenericGenerator.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/CPack/cmCPackGenericGenerator.cxx b/Source/CPack/cmCPackGenericGenerator.cxx index e3163a494..8d5c832a6 100644 --- a/Source/CPack/cmCPackGenericGenerator.cxx +++ b/Source/CPack/cmCPackGenericGenerator.cxx @@ -325,7 +325,11 @@ int cmCPackGenericGenerator::InstallProject() cmGlobalGenerator* globalGenerator = this->MakefileMap->GetCMakeInstance()->CreateGlobalGenerator( cmakeGenerator); - + // set the global flag for unix style paths on cmSystemTools as + // soon as the generator is set. This allows gmake to be used + // on windows. + cmSystemTools::SetForceUnixPaths(globalGenerator->GetForceUnixPaths()); + // Does this generator require pre-install? if ( globalGenerator->GetPreinstallTargetName() ) {