January 8, 2013

bulldozers bulldozers
Lab Rat
1 posts

qmake vclib debug/release target naming: vs2008 vs vs2010


Hi All,

my .pro file contains the following:

  1. CONFIG(debug, debug|release) {
  2.   POST   =D
  3. }
  5. TARGET = mylib$${POST}

A VS2008 .vsproj file generated from this .pro specifies the library output file is mylibD.lib for debug mode and mylib.lib for release, as requested.

However, a VS2010 .vcxproj will output the library to the same exact file name for both debug and release. Looking at the generated project, the output is set to $(OutDir)$(TargetName)$(TargetExt), with $(TargetName) set to $(ProjectName), which is the same for both debug and release.

For applications, the debug/release naming works fine for both VS2008 and VS2010.

Could anyone comment if they’ve seen this and if there’s something I’m missing? Is this a legitimate bug? Any feedback would be greatly appreciated.

0 replies

  ‹‹ [Solved]how to add dependency to a lib?      File format of qmltypes file? ››

You must log in to post a reply. Not a member yet? Register here!