mirror of
https://github.com/reactos/CMake.git
synced 2025-02-13 08:06:16 +00:00
Merge topic 'ninja-dont-pollute-current-dir'
74fc598 Ninja: don't pollute current dir when using gui (#13495)
This commit is contained in:
commit
7da986bb6c
@ -670,9 +670,19 @@ cmNinjaTargetGenerator
|
||||
|
||||
void
|
||||
cmNinjaTargetGenerator
|
||||
::EnsureDirectoryExists(const std::string& dir) const
|
||||
::EnsureDirectoryExists(const std::string& path) const
|
||||
{
|
||||
cmSystemTools::MakeDirectory(dir.c_str());
|
||||
if (cmSystemTools::FileIsFullPath(path.c_str()))
|
||||
{
|
||||
cmSystemTools::MakeDirectory(path.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
const std::string fullPath = std::string(this->GetGlobalGenerator()->
|
||||
GetCMakeInstance()->GetHomeOutputDirectory())
|
||||
+ "/" + path;
|
||||
cmSystemTools::MakeDirectory(fullPath.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user