summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-12-22 21:42:36 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-12-22 21:42:36 (GMT)
commitf6588b7919a0da4e0d5bb89b7f527e3fe2687bc3 (patch)
tree4e64e8bb66e869ac393a25d758dda54d55838615 /Source/cmLocalGenerator.cxx
parent001bbb0d99aa8a02c5d211f5e55570ecc17e1fb0 (diff)
downloadCMake-f6588b7919a0da4e0d5bb89b7f527e3fe2687bc3.zip
CMake-f6588b7919a0da4e0d5bb89b7f527e3fe2687bc3.tar.gz
CMake-f6588b7919a0da4e0d5bb89b7f527e3fe2687bc3.tar.bz2
ENH: fix borland make clean targets before build, add new generators for msys and mingw
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 29503bc..57e0eea 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1604,10 +1604,26 @@ std::string cmLocalGenerator::Convert(const char* source,
}
// Now convert it to an output path.
- if (output == MAKEFILE || output == SHELL)
+ if (output == MAKEFILE)
{
result = cmSystemTools::ConvertToOutputPath(result.c_str());
}
-
+ if( output == SHELL)
+ {
+ // for shell commands if force unix is on, but m_WindowsShell
+ // is true, then turn off force unix paths for the output path
+ // so that the path is windows style and will work with windows
+ // cmd.exe.
+ bool forceOn = cmSystemTools::GetForceUnixPaths();
+ if(forceOn && m_WindowsShell)
+ {
+ cmSystemTools::SetForceUnixPaths(false);
+ }
+ result = cmSystemTools::ConvertToOutputPath(result.c_str());
+ if(forceOn && m_WindowsShell)
+ {
+ cmSystemTools::SetForceUnixPaths(true);
+ }
+ }
return result;
}