diff options
author | Andy Shaw <andy.shaw@digia.com> | 2013-07-02 12:44:53 (GMT) |
---|---|---|
committer | Andy Shaw <andy.shaw@digia.com> | 2014-11-27 13:04:31 (GMT) |
commit | 3705ea476c00cbe9138714ddd416be0077b5b61d (patch) | |
tree | 91b8f48c143b5e7b9321211d94ca9e9faaba3a3e /qmake | |
parent | e3e64ed76ab9d4e0b13cd6fb2ae6beb1ac9efb52 (diff) | |
download | Qt-3705ea476c00cbe9138714ddd416be0077b5b61d.zip Qt-3705ea476c00cbe9138714ddd416be0077b5b61d.tar.gz Qt-3705ea476c00cbe9138714ddd416be0077b5b61d.tar.bz2 |
Only add the res_file to the generated files if there is no rc_file
If both the rc_file and res_file was added to the project then in MSVC
2012 it would cause an error complaining of a duplicated resource.
Task-number: QTBUG-29826
Change-Id: Ib3401b423208cd8c90895038c9cbadd80c39b542
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
(cherry picked from qtbase/fa1fb5ed945650d45cf9b61906232cfbae11360e)
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'qmake')
-rw-r--r-- | qmake/generators/win32/msvc_vcproj.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qmake/generators/win32/msvc_vcproj.cpp b/qmake/generators/win32/msvc_vcproj.cpp index 765f5fb..ca5db41 100644 --- a/qmake/generators/win32/msvc_vcproj.cpp +++ b/qmake/generators/win32/msvc_vcproj.cpp @@ -1300,7 +1300,8 @@ void VcprojGenerator::initGeneratedFiles() vcProject.GeneratedFiles.addFiles(project->values("GENERATED_SOURCES")); vcProject.GeneratedFiles.addFiles(project->values("GENERATED_FILES")); vcProject.GeneratedFiles.addFiles(project->values("IDLSOURCES")); - vcProject.GeneratedFiles.addFiles(project->values("RES_FILE")); + if (project->values("RC_FILE").isEmpty()) + vcProject.GeneratedFiles.addFiles(project->values("RES_FILE")); vcProject.GeneratedFiles.addFiles(project->values("QMAKE_IMAGE_COLLECTION")); // compat if(!extraCompilerOutputs.isEmpty()) vcProject.GeneratedFiles.addFiles(extraCompilerOutputs.keys()); |