summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-31 09:08:18 -0400
committerBrad King <brad.king@kitware.com>2019-10-31 09:08:18 -0400
commit7fa657b41d1b08bb5be3f16ced37ecb07a32e748 (patch)
tree1318219de49bed27f7c362cca89746453ead21e9
parente5cc8f575b81fa3af001d69b0737269f04cf94b2 (diff)
parent90d643c31221a1b1e3841a0a1f7a2b2f8d16d2d8 (diff)
downloadcmake-7fa657b41d1b08bb5be3f16ced37ecb07a32e748.tar.gz
Merge branch 'autogen_windows_search_fix' into release-3.16
Merge-request: !3962
-rw-r--r--Source/cmQtAutoMocUic.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmQtAutoMocUic.cxx b/Source/cmQtAutoMocUic.cxx
index 127421ab5c..f8b8981524 100644
--- a/Source/cmQtAutoMocUic.cxx
+++ b/Source/cmQtAutoMocUic.cxx
@@ -1342,10 +1342,9 @@ bool cmQtAutoMocUicT::JobEvalCacheMocT::FindIncludedHeader(
auto findHeader = [this,
&headerHandle](std::string const& basePath) -> bool {
bool found = false;
- std::string const baseCollapsed =
- this->Gen()->CollapseFullPathTS(cmStrCat(basePath, '.'));
for (std::string const& ext : this->BaseConst().HeaderExtensions) {
- std::string const testPath = cmStrCat(baseCollapsed, ext);
+ std::string const testPath =
+ this->Gen()->CollapseFullPathTS(cmStrCat(basePath, '.', ext));
cmFileTime fileTime;
if (!fileTime.Load(testPath)) {
// File not found
@@ -1377,8 +1376,7 @@ bool cmQtAutoMocUicT::JobEvalCacheMocT::FindIncludedHeader(
}
}
if (!found) {
- this->SearchLocations.emplace_back(
- cmQtAutoGen::ParentDir(baseCollapsed));
+ this->SearchLocations.emplace_back(cmQtAutoGen::ParentDir(basePath));
}
return found;
};