ENH: some better checks

This commit is contained in:
Ken Martin 2005-06-22 09:12:05 -04:00
parent 369308ca76
commit 3b66c0a574
1 changed files with 7 additions and 1 deletions

View File

@ -693,6 +693,12 @@ void cmTarget::SetProperty(const char* prop, const char* value)
void cmTarget::UpdateLocation()
{
// make sure we have a makefile
if (!m_Makefile)
{
return;
}
// set the LOCATION property of the target
std::string target_location;
switch( this->GetType() )
@ -712,7 +718,7 @@ void cmTarget::UpdateLocation()
}
if ( target_location.size() == 0 )
{
target_location += m_Makefile->GetCurrentOutputDirectory();
target_location += m_Makefile->GetStartOutputDirectory();
}
if ( target_location.size() > 0 )
{