ENH: use GetRequiredDefinition instead of GetDefinition and crash

This commit is contained in:
Bill Hoffman
2004-08-11 16:58:09 -04:00
parent bb32a51825
commit b41d447935
9 changed files with 44 additions and 43 deletions

View File

@@ -65,7 +65,7 @@ bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args)
this->SetError("could not find Mac OSX bundle template file.");
return false;
}
std::string macdir = m_Makefile->GetDefinition("EXECUTABLE_OUTPUT_PATH");
std::string macdir = m_Makefile->GetSafeDefinition("EXECUTABLE_OUTPUT_PATH");
if ( macdir.size() == 0 )
{
macdir = m_Makefile->GetCurrentOutputDirectory();