summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-02 08:25:13 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-19 20:36:49 (GMT)
commit390bc3244fd94d687bd48860eb2a70ad9674d755 (patch)
tree4d3fa1919450f9fffa076520bc09af8992d16fb4 /Source/cmMakefile.cxx
parent8ab1cce7047b637f504b4b83cecc104e5cd1adc5 (diff)
downloadCMake-390bc3244fd94d687bd48860eb2a70ad9674d755.zip
CMake-390bc3244fd94d687bd48860eb2a70ad9674d755.tar.gz
CMake-390bc3244fd94d687bd48860eb2a70ad9674d755.tar.bz2
cmMakefile: Remove redundant condition.
As this is called in the constructor, the definition will never be already set.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index c1bbd12..e84ea4e 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -230,18 +230,12 @@ 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);
- }
+ 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);
- }
+ this->AddDefinition("CMAKE_CURRENT_BINARY_DIR", dir);
}
}