瀏覽代碼

ENH: do not output make install rules on windows because they do not work

Bill Hoffman 22 年之前
父節點
當前提交
60f9816f96
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Source/cmLocalUnixMakefileGenerator.cxx

+ 5 - 0
Source/cmLocalUnixMakefileGenerator.cxx

@@ -2200,6 +2200,11 @@ void cmLocalUnixMakefileGenerator::OutputMakeVariables(std::ostream& fout)
 
 void cmLocalUnixMakefileGenerator::OutputInstallRules(std::ostream& fout)
 {
+  // Install is not currently supported on windows
+  if(m_WindowsShell)
+    {
+    return;
+    }
   const char* root
     = m_Makefile->GetDefinition("CMAKE_ROOT");
   fout << "INSTALL = \"" << root << "/Templates/install-sh\" -c\n";