summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-04-18 18:36:04 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-22 12:49:22 (GMT)
commit66caae45f615e03c49a87cb17901fd89ffd389af (patch)
treed0db7527798c1c1644bace77eb436fb4d2c8cd65 /Source/cmQtAutoGenerators.cxx
parent663d093d454902269a83d7f07c6546e773328086 (diff)
downloadCMake-66caae45f615e03c49a87cb17901fd89ffd389af.zip
CMake-66caae45f615e03c49a87cb17901fd89ffd389af.tar.gz
CMake-66caae45f615e03c49a87cb17901fd89ffd389af.tar.bz2
Autogen: Check added for name collisions of generated qrc_NAME.cpp files
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r--Source/cmQtAutoGenerators.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx
index 18a2bca..622c655 100644
--- a/Source/cmQtAutoGenerators.cxx
+++ b/Source/cmQtAutoGenerators.cxx
@@ -1403,6 +1403,20 @@ bool cmQtAutoGenerators::GenerateQrcFiles()
}
}
+ // look for name collisions
+ {
+ std::multimap<std::string, std::string> collisions;
+ if( this->NameCollisionTest ( qrcGenMap, collisions ) )
+ {
+ std::cerr << "AUTOGEN: error: The same qrc_NAME.cpp file"
+ " will be generated from different sources." << std::endl
+ << "To avoid this error rename the source .qrc files."
+ << std::endl;
+ this->NameCollisionLog ( collisions );
+ ::exit(EXIT_FAILURE);
+ }
+ }
+
// generate qrc files
for(std::map<std::string, std::string>::const_iterator
si = qrcGenMap.begin(); si != qrcGenMap.end(); ++si)