cmake-gui: Teach --install make destination directory (#16064)
Ensure the destination directory exists before creating symlinks in it.
This commit is contained in:
parent
52dddefcbb
commit
32d569af9a
|
@ -217,6 +217,7 @@ static bool cmOSXInstall(std::string const& dir, std::string const& tool)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cmSystemTools::MakeDirectory(dir);
|
||||||
if (symlink(tool.c_str(), link.c_str()) == 0)
|
if (symlink(tool.c_str(), link.c_str()) == 0)
|
||||||
{
|
{
|
||||||
std::cerr << "Linked: '" << link << "' -> '" << tool << "'\n";
|
std::cerr << "Linked: '" << link << "' -> '" << tool << "'\n";
|
||||||
|
|
Loading…
Reference in New Issue