BUG: fix CPack to use correct paths

This commit is contained in:
Ken Martin 2006-05-03 15:17:09 -04:00
parent 826d238ebd
commit f131463e3d
1 changed files with 5 additions and 1 deletions

View File

@ -325,6 +325,10 @@ 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() )