Salome HOME
Upgrade to new MG license mechanism and keep compatibility with old ones
[modules/smesh.git] / src / SMESH / MG_ADAPT.cxx
index 50f467fc03304a342577f7476898867cb505d79b..82f9221b2f9fa341a9b2a13cdd46008b8e0f7c80 100644 (file)
@@ -1036,14 +1036,19 @@ std::string MgAdapt::getCommandToRun()
     if ( key.empty() )
       return ToComment( "Problem with library SalomeMeshGemsKeyGenerator: " + errorTxt );
 
-    cmd += " --key " + key;
+    if ( key!="0" )
+      cmd += " --key " + key;
   }
 
 #ifdef WIN32
   cmd += " < NUL";
 #endif
-  //   std::cout << "--- cmd :"<< std::endl;
-  //   std::cout << cmd << std::endl;
+
+  if (SALOME::VerbosityActivated())
+    {
+      std::cout << "--- cmd :"<< std::endl;
+      std::cout << cmd << std::endl;
+    }
 
   return cmd;
 }