ENH: some better checks
This commit is contained in:
parent
369308ca76
commit
3b66c0a574
|
@ -693,6 +693,12 @@ void cmTarget::SetProperty(const char* prop, const char* value)
|
||||||
|
|
||||||
void cmTarget::UpdateLocation()
|
void cmTarget::UpdateLocation()
|
||||||
{
|
{
|
||||||
|
// make sure we have a makefile
|
||||||
|
if (!m_Makefile)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// set the LOCATION property of the target
|
// set the LOCATION property of the target
|
||||||
std::string target_location;
|
std::string target_location;
|
||||||
switch( this->GetType() )
|
switch( this->GetType() )
|
||||||
|
@ -712,7 +718,7 @@ void cmTarget::UpdateLocation()
|
||||||
}
|
}
|
||||||
if ( target_location.size() == 0 )
|
if ( target_location.size() == 0 )
|
||||||
{
|
{
|
||||||
target_location += m_Makefile->GetCurrentOutputDirectory();
|
target_location += m_Makefile->GetStartOutputDirectory();
|
||||||
}
|
}
|
||||||
if ( target_location.size() > 0 )
|
if ( target_location.size() > 0 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue