summaryrefslogtreecommitdiff
path: root/Source/cmIncludeCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-18 14:50:32 +0200
committerStephen Kelly <steveire@gmail.com>2015-04-18 15:29:17 +0200
commita2f2aeee2f4d4af1f25f4a5b86bacb8a81a7dec4 (patch)
treedd46c44fb1a2267149352ff1a95b09b72ce737f8 /Source/cmIncludeCommand.cxx
parent68f791cd06983e8fd375edfba74a9d821231e269 (diff)
downloadcmake-a2f2aeee2f4d4af1f25f4a5b86bacb8a81a7dec4.tar.gz
cmMakefile: Add wrapper for reading listfiles which have an origin.
Such files are delegates from other files, and so they set the CMAKE_PARENT_LIST_FILE to the originator. They also may set a policy scope.
Diffstat (limited to 'Source/cmIncludeCommand.cxx')
-rw-r--r--Source/cmIncludeCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmIncludeCommand.cxx b/Source/cmIncludeCommand.cxx
index 0c2e73ac52..18e3585ed3 100644
--- a/Source/cmIncludeCommand.cxx
+++ b/Source/cmIncludeCommand.cxx
@@ -131,8 +131,7 @@ bool cmIncludeCommand
}
bool readit =
- this->Makefile->ReadListFile( this->Makefile->GetCurrentListFile(),
- fname.c_str(), noPolicyScope);
+ this->Makefile->ReadDependentFile(fname.c_str(), noPolicyScope);
// add the location of the included file if a result variable was given
if (!resultVarName.empty())