mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
ENH: use GetRequiredDefinition instead of GetDefinition and crash
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user