Sfoglia il codice sorgente

Attempt to make NMake quiet during TRY_COMPILE

Andy Cedilnik 23 anni fa
parent
commit
66d04692a0
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      Source/cmGlobalGenerator.cxx

+ 7 - 0
Source/cmGlobalGenerator.cxx

@@ -160,6 +160,13 @@ int cmGlobalGenerator::TryCompile(const char *, const char *bindir,
    */
   std::string cwd = cmSystemTools::GetCurrentWorkingDirectory();
   cmSystemTools::ChangeDirectory(bindir);
+
+  // Since we have full control over the invocation of nmake, let us
+  // make it quiet.
+  if ( strcmp(this->GetName(), "NMake Makefiles") == 0 )
+    {
+    makeCommand += " /NOLOGO ";
+    }
   
   // now build
   if (target)