summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-05-03 19:17:09 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-05-03 19:17:09 (GMT)
commitf131463e3d7d9281665cce69856ce1ef90327f9f (patch)
tree0a625689c8f92c354bc78c7308cb31ee85faadb1
parent826d238ebd644be6e1ea00363e76ecba7699a649 (diff)
downloadCMake-f131463e3d7d9281665cce69856ce1ef90327f9f.zip
CMake-f131463e3d7d9281665cce69856ce1ef90327f9f.tar.gz
CMake-f131463e3d7d9281665cce69856ce1ef90327f9f.tar.bz2
BUG: fix CPack to use correct paths
-rw-r--r--Source/CPack/cmCPackGenericGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackGenericGenerator.cxx b/Source/CPack/cmCPackGenericGenerator.cxx
index e3163a4..8d5c832 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() )
{