summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
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;
}