Browse Source

ENH: get directory property should return an empty variable if it is not set, not just have an error

Bill Hoffman 21 years ago
parent
commit
ab7d51581c
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Source/cmGetDirectoryPropertyCommand.cxx

+ 2 - 3
Source/cmGetDirectoryPropertyCommand.cxx

@@ -101,9 +101,8 @@ bool cmGetDirectoryPropertyCommand::InitialPass(
       m_Makefile->AddDefinition(variable.c_str(), prop);
       return true;
       }
-    std::string emsg = "Unknown directory property: " + args[1];
-    this->SetError(emsg.c_str());
-    return false;
+    m_Makefile->AddDefinition(variable.c_str(), "");
+    return true;
     }
   m_Makefile->AddDefinition(variable.c_str(), output.c_str());