From 32d569af9a7174f53cd2abd0248385bfb7fc1929 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 15 Apr 2016 13:23:02 -0400 Subject: [PATCH] cmake-gui: Teach --install make destination directory (#16064) Ensure the destination directory exists before creating symlinks in it. --- Source/QtDialog/CMakeSetup.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx index 4f93a7729..cff4f6f53 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";