diff --git a/Source/cmLocalUnixMakefileGenerator.cxx b/Source/cmLocalUnixMakefileGenerator.cxx index 45be308db..53e89fd9f 100644 --- a/Source/cmLocalUnixMakefileGenerator.cxx +++ b/Source/cmLocalUnixMakefileGenerator.cxx @@ -1707,7 +1707,7 @@ void cmLocalUnixMakefileGenerator::OutputBuildTargetInDirWindows(std::ostream& f const char* fullpath) { std::string jumpBack = - cmSystemTools::RelativePath(cmSystemTools::GetProgramPath(fullpath).c_str(), + cmSystemTools::RelativePath(cmSystemTools::GetProgramPath(path).c_str(), m_Makefile->GetCurrentOutputDirectory()); jumpBack = this->ConvertToOutputForExisting(jumpBack.c_str()); std::string wpath = this->ConvertToOutputForExisting(path);