Просмотр исходного кода

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

Ensure the destination directory exists before creating symlinks in it.
Brad King 9 лет назад
Родитель
Сommit
32d569af9a
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      Source/QtDialog/CMakeSetup.cxx

+ 1 - 0
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";