summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-30 15:41:53 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-30 15:41:53 (GMT)
commit9619ee3aa10d6e89129a66362433b969e35e6232 (patch)
treedfdca421c571121733b48044d71a54365a802278 /Source/cmake.cxx
parentef2af0514053a60f68769aade9e027631ac03b03 (diff)
downloadCMake-9619ee3aa10d6e89129a66362433b969e35e6232.zip
CMake-9619ee3aa10d6e89129a66362433b969e35e6232.tar.gz
CMake-9619ee3aa10d6e89129a66362433b969e35e6232.tar.bz2
Another attempt on Windows 98
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 9a8401f..b30b5ff 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -433,8 +433,9 @@ int cmake::AddCMakePaths(const char *arg0)
"Path to CMake installation.", cmCacheManager::INTERNAL);
#ifdef _WIN32
- cmSystemTools::SetWindows9xComspecSubstitute(
- (cMakeSelf + " -E comspec").c_str());
+ std::string path = cmSystemTools::GetFilenamePath(cMakeSelf);
+ std::string comspec = path + "\\cmw9xcom";
+ cmSystemTools::SetWindows9xComspecSubstitute(comspec.c_str());
#endif
return 1;
}