cmake-gui: Teach --install make destination directory (#16064)

Ensure the destination directory exists before creating symlinks in it.
This commit is contained in:
Brad King 2016-04-15 13:23:02 -04:00
parent 52dddefcbb
commit 32d569af9a
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ static bool cmOSXInstall(std::string const& dir, std::string const& tool)
return true;
}
}
cmSystemTools::MakeDirectory(dir);
if (symlink(tool.c_str(), link.c_str()) == 0)
{
std::cerr << "Linked: '" << link << "' -> '" << tool << "'\n";