diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 2b4b896ad..02115918c 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -541,6 +541,15 @@ bool cmMakefile::ReadListFile(const char* filename_in, const char *external_in, bool noPolicyScope, bool requireProjectCommand) +{ + return this->ReadListFileInternal(filename_in, external_in, + noPolicyScope, requireProjectCommand); +} + +bool cmMakefile::ReadListFileInternal(const char* filename_in, + const char* external_in, + bool noPolicyScope, + bool requireProjectCommand) { std::string currentParentFile = this->GetSafeDefinition("CMAKE_PARENT_LIST_FILE"); diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 3d925fa78..88faed924 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -991,6 +991,12 @@ protected: private: void Initialize(); + + bool ReadListFileInternal(const char* filename_in, + const char* external_in, + bool noPolicyScope, + bool requireProjectCommand); + bool ParseDefineFlag(std::string const& definition, bool remove); bool EnforceUniqueDir(const std::string& srcPath,