diff options
author | Brad King <brad.king@kitware.com> | 2020-08-31 17:10:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-31 17:10:31 (GMT) |
commit | 776059ef0f96945412833c00f9297b7fe4dba623 (patch) | |
tree | 78554e4662beff663d86dc0ba2cbdefb2aec2080 /Source/cmQtAutoMocUic.cxx | |
parent | f2a22ecda9b21a8a26c99d201d6f542e78d4f414 (diff) | |
parent | 6b20bbd2dd78747cb951d32c12b63c9605971b32 (diff) | |
download | CMake-776059ef0f96945412833c00f9297b7fe4dba623.zip CMake-776059ef0f96945412833c00f9297b7fe4dba623.tar.gz CMake-776059ef0f96945412833c00f9297b7fe4dba623.tar.bz2 |
Merge branch 'backport-3.17-automoc-depend-project-file'
Diffstat (limited to 'Source/cmQtAutoMocUic.cxx')
-rw-r--r-- | Source/cmQtAutoMocUic.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmQtAutoMocUic.cxx b/Source/cmQtAutoMocUic.cxx index f6cccfb..71c288c 100644 --- a/Source/cmQtAutoMocUic.cxx +++ b/Source/cmQtAutoMocUic.cxx @@ -184,6 +184,7 @@ public: std::string DepFile; std::string DepFileRuleName; std::vector<std::string> HeaderExtensions; + std::vector<std::string> ListFiles; }; /** Shared common variables. */ @@ -2176,7 +2177,7 @@ void cmQtAutoMocUicT::JobDepFilesMergeT::Process() return dependenciesFromDepFile(f.c_str()); }; - std::vector<std::string> dependencies; + std::vector<std::string> dependencies = BaseConst().ListFiles; ParseCacheT& parseCache = BaseEval().ParseCache; auto processMappingEntry = [&](const MappingMapT::value_type& m) { auto cacheEntry = parseCache.GetOrInsert(m.first); @@ -2257,6 +2258,7 @@ bool cmQtAutoMocUicT::InitFromInfo(InfoT const& info) !info.GetString("DEP_FILE_RULE_NAME", BaseConst_.DepFileRuleName, false) || !info.GetStringConfig("SETTINGS_FILE", SettingsFile_, true) || + !info.GetArray("CMAKE_LIST_FILES", BaseConst_.ListFiles, true) || !info.GetArray("HEADER_EXTENSIONS", BaseConst_.HeaderExtensions, true) || !info.GetString("QT_MOC_EXECUTABLE", MocConst_.Executable, false) || !info.GetString("QT_UIC_EXECUTABLE", UicConst_.Executable, false)) { |