Important: Please read the Qt Code of Conduct -

Qmake vclib debug/release target naming: vs2008 vs vs2010

  • Hi All,

    my .pro file contains the following:
    CONFIG(debug, debug|release) {
    POST =D

    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.

Log in to reply