summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-23 20:28:34 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-23 20:28:34 (GMT)
commit768134c690a2d9a6cf2669e2a46189936fcae2aa (patch)
tree8ffddb156bd1d131a5ce30b766a79509b49840b3 /Source/cmake.cxx
parent1a2a3abbfd4d98fa541ab67635bc72ff125773b3 (diff)
downloadCMake-768134c690a2d9a6cf2669e2a46189936fcae2aa.zip
CMake-768134c690a2d9a6cf2669e2a46189936fcae2aa.tar.gz
CMake-768134c690a2d9a6cf2669e2a46189936fcae2aa.tar.bz2
command line fixes for win32
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 5655274..00bbfdb 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -84,12 +84,10 @@ void cmake::SetArgs(cmMakefile& builder, int ac, char** av)
(cmSystemTools::GetCurrentWorkingDirectory().c_str());
if (ac == 2)
{
- std::string hdir = cmSystemTools::GetCurrentWorkingDirectory()
- + "/" + av[1];
builder.SetHomeDirectory
- (cmSystemTools::CollapseFullPath(hdir.c_str()).c_str());
+ (cmSystemTools::CollapseFullPath(av[1]).c_str());
builder.SetStartDirectory
- (cmSystemTools::CollapseFullPath(hdir.c_str()).c_str());
+ (cmSystemTools::CollapseFullPath(av[1]).c_str());
}
else
{
@@ -146,7 +144,9 @@ void cmake::SetArgs(cmMakefile& builder, int ac, char** av)
void cmake::AddCMakePaths(char **av)
{
// Find our own exectuable.
- std::string cMakeSelf = cmSystemTools::FindProgram(av[0]);
+ std::string cMakeSelf = av[0];
+ cmSystemTools::ConvertToUnixSlashes(cMakeSelf);
+ cMakeSelf = cmSystemTools::FindProgram(cMakeSelf.c_str());
// Save the value in the cache
cmCacheManager::GetInstance()->AddCacheEntry