diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-10-28 08:26:51 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-10-29 02:28:20 (GMT) |
commit | a8bf0b2b376cf61f6fb3d2a504021a589aed32d5 (patch) | |
tree | 3464638f2ef88f154ddb6dbe04836711145b5be9 /Source/cmQtAutoGenerators.cxx | |
parent | a720131006d81f8c10783ac12e4ef172d5e2d690 (diff) | |
download | CMake-a8bf0b2b376cf61f6fb3d2a504021a589aed32d5.zip CMake-a8bf0b2b376cf61f6fb3d2a504021a589aed32d5.tar.gz CMake-a8bf0b2b376cf61f6fb3d2a504021a589aed32d5.tar.bz2 |
Autogen: RCC: Append checksum suffix to wrapped file name
Closes #17404
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-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()); |