summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-15 17:23:02 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-15 17:23:41 (GMT)
commit32d569af9a7174f53cd2abd0248385bfb7fc1929 (patch)
tree3467d28017987fe5fa8fb49d3466746b96b11111 /Source/QtDialog
parent52dddefcbbd2a79826fe9cb5b5fe787c6cdfe2a8 (diff)
downloadCMake-32d569af9a7174f53cd2abd0248385bfb7fc1929.zip
CMake-32d569af9a7174f53cd2abd0248385bfb7fc1929.tar.gz
CMake-32d569af9a7174f53cd2abd0248385bfb7fc1929.tar.bz2
cmake-gui: Teach --install make destination directory (#16064)
Ensure the destination directory exists before creating symlinks in it.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index 4f93a77..cff4f6f 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -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";