summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-18 12:50:37 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-18 13:31:17 (GMT)
commit95a27267daee021514df8c93ffd6d9b9e55dea51 (patch)
treebf10ce36c074f97c4c4a6362eefa91572f75955b /Source
parent7d248547361bbacb4f5b532ef2ce4f4935c97dc8 (diff)
downloadCMake-95a27267daee021514df8c93ffd6d9b9e55dea51.zip
CMake-95a27267daee021514df8c93ffd6d9b9e55dea51.tar.gz
CMake-95a27267daee021514df8c93ffd6d9b9e55dea51.tar.bz2
cmMakefile: Extract conditional code to caller.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index d3ea55a..bc225ff 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -525,6 +525,7 @@ void cmMakefile::IncludeScope::EnforceCMP0011()
bool cmMakefile::ProcessBuildsystemFile(const char* listfile)
{
this->AddDefinition("CMAKE_PARENT_LIST_FILE", listfile);
+ this->cmCurrentListFile = listfile;
return this->ReadListFile(listfile, 0, true,
this->cmStartDirectory == this->cmHomeDirectory);
}
@@ -553,11 +554,6 @@ bool cmMakefile::ReadListFile(const char* filename_in,
filenametoread = filename_in;
}
- if (!filenametoread.empty())
- {
- this->cmCurrentListFile = filenametoread;
- }
-
if (external_in)
{
filenametoread =