From 826ab028a8c24b115286d251938396ca1de71b56 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Thu, 3 Apr 2014 11:54:10 +0200 Subject: [PATCH] vcxproj generator: append version suffix only to library targets Task-number: QTBUG-38066 Change-Id: I2f1635f2cb34acb388c380fc2fc3fbe4df04bb03 Reviewed-by: Oswald Buddenhagen --- qmake/generators/win32/msvc_vcproj.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qmake/generators/win32/msvc_vcproj.cpp b/qmake/generators/win32/msvc_vcproj.cpp index 03a41fd1bc..ac258e2841 100644 --- a/qmake/generators/win32/msvc_vcproj.cpp +++ b/qmake/generators/win32/msvc_vcproj.cpp @@ -1002,8 +1002,10 @@ void VcprojGenerator::initConfiguration() // The target name could have been changed. conf.PrimaryOutput = project->first("TARGET").toQString(); - if ( !conf.PrimaryOutput.isEmpty() && !project->first("TARGET_VERSION_EXT").isEmpty() && project->isActiveConfig("shared")) + if (!conf.PrimaryOutput.isEmpty() && project->first("TEMPLATE") == "vclib" + && project->isActiveConfig("shared")) { conf.PrimaryOutput.append(project->first("TARGET_VERSION_EXT").toQString()); + } } if (conf.CompilerVersion >= NET2012) {