diff --git a/Source/cmake.cxx b/Source/cmake.cxx index b30b5ff7d..7c360f878 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -433,8 +433,7 @@ int cmake::AddCMakePaths(const char *arg0) "Path to CMake installation.", cmCacheManager::INTERNAL); #ifdef _WIN32 - std::string path = cmSystemTools::GetFilenamePath(cMakeSelf); - std::string comspec = path + "\\cmw9xcom"; + std::string comspec = "cmw9xcom.exe"; cmSystemTools::SetWindows9xComspecSubstitute(comspec.c_str()); #endif return 1;