mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 02:59:22 -05:00
cmWorkingDirectory: Add GetOldDirectory method
This commit is contained in:
@@ -402,7 +402,6 @@ int cmCPackGenerator::InstallProjectViaInstalledDirectories(
|
|||||||
}
|
}
|
||||||
/* rebuild symlinks in the installed tree */
|
/* rebuild symlinks in the installed tree */
|
||||||
if (!symlinkedFiles.empty()) {
|
if (!symlinkedFiles.empty()) {
|
||||||
std::string curDir = cmSystemTools::GetCurrentWorkingDirectory();
|
|
||||||
std::string goToDir = cmStrCat(tempDir, '/', subdir);
|
std::string goToDir = cmStrCat(tempDir, '/', subdir);
|
||||||
cmCPackLogger(cmCPackLog::LOG_DEBUG,
|
cmCPackLogger(cmCPackLog::LOG_DEBUG,
|
||||||
"Change dir to: " << goToDir << std::endl);
|
"Change dir to: " << goToDir << std::endl);
|
||||||
@@ -441,7 +440,8 @@ int cmCPackGenerator::InstallProjectViaInstalledDirectories(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
cmCPackLogger(cmCPackLog::LOG_DEBUG,
|
cmCPackLogger(cmCPackLog::LOG_DEBUG,
|
||||||
"Going back to: " << curDir << std::endl);
|
"Going back to: " << workdir.GetOldDirectory()
|
||||||
|
<< std::endl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ public:
|
|||||||
*/
|
*/
|
||||||
int GetLastResult() const { return ResultCode; }
|
int GetLastResult() const { return ResultCode; }
|
||||||
|
|
||||||
|
std::string const& GetOldDirectory() const { return this->OldDir; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string OldDir;
|
std::string OldDir;
|
||||||
int ResultCode;
|
int ResultCode;
|
||||||
|
|||||||
Reference in New Issue
Block a user