diff options
author | Brad King <brad.king@kitware.com> | 2017-10-30 12:58:21 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-10-30 12:58:26 (GMT) |
commit | 9bfc43a5e5f82f9477ea761cc739fa289e3b92e2 (patch) | |
tree | c429035a1af7eee86ae589e1c505436dc9090084 | |
parent | 58e0692b62b5be1703142e8d7cc2373c8cee7508 (diff) | |
parent | a8bf0b2b376cf61f6fb3d2a504021a589aed32d5 (diff) | |
download | CMake-9bfc43a5e5f82f9477ea761cc739fa289e3b92e2.zip CMake-9bfc43a5e5f82f9477ea761cc739fa289e3b92e2.tar.gz CMake-9bfc43a5e5f82f9477ea761cc739fa289e3b92e2.tar.bz2 |
Merge topic 'autogen-qrc-file-name'
a8bf0b2b Autogen: RCC: Append checksum suffix to wrapped file name
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1422
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index f13312f..a01d5d6 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -1931,11 +1931,21 @@ bool cmQtAutoGenerators::RccGenerateFile(const RccJob& rccJob) bool rccGenerated = false; std::string rccFileAbs; - if (this->MultiConfig == cmQtAutoGen::SINGLE) { - rccFileAbs = rccJob.RccFile; - } else { - rccFileAbs = - cmQtAutoGen::AppendFilenameSuffix(rccJob.RccFile, this->ConfigSuffix); + { + std::string suffix; + switch (this->MultiConfig) { + case cmQtAutoGen::SINGLE: + break; + case cmQtAutoGen::WRAP: + suffix = this->ConfigSuffix; + suffix += "_"; + suffix += this->FilePathChecksum.getPart(rccJob.RccFile, 4); + break; + case cmQtAutoGen::FULL: + suffix = this->ConfigSuffix; + break; + } + rccFileAbs = cmQtAutoGen::AppendFilenameSuffix(rccJob.RccFile, suffix); } std::string const rccFileRel = cmSystemTools::RelativePath( this->AutogenBuildDir.c_str(), rccFileAbs.c_str()); |