cmMakefile: Remove redundant condition.
As this is called in the constructor, the definition will never be already set.
This commit is contained in:
parent
8ab1cce704
commit
390bc3244f
@ -230,19 +230,13 @@ cmMakefile::cmMakefile(cmLocalGenerator* localGenerator)
|
||||
{
|
||||
const char* dir = this->GetCMakeInstance()->GetHomeDirectory();
|
||||
this->AddDefinition("CMAKE_SOURCE_DIR", dir);
|
||||
if ( !this->GetDefinition("CMAKE_CURRENT_SOURCE_DIR") )
|
||||
{
|
||||
this->AddDefinition("CMAKE_CURRENT_SOURCE_DIR", dir);
|
||||
}
|
||||
}
|
||||
{
|
||||
const char* dir = this->GetCMakeInstance()->GetHomeOutputDirectory();
|
||||
this->AddDefinition("CMAKE_BINARY_DIR", dir);
|
||||
if ( !this->GetDefinition("CMAKE_CURRENT_BINARY_DIR") )
|
||||
{
|
||||
this->AddDefinition("CMAKE_CURRENT_BINARY_DIR", dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cmMakefile::~cmMakefile()
|
||||
|
Loading…
x
Reference in New Issue
Block a user