Qt - Don't append major version number to the end of executable/library name

dll, filenames, naming, qt, version

Solution

Use this:

CONFIG += skip_target_version_ext

Problem

How can I stop Qt from renaming my DLL to `MyDLLName{MAJOR_VERSION_NUM}.dll`? This only happens when I set the `VERSION` in my project file, but I also want to set the version. For example, if I have: ``` VERSION = 1.2.3.4 ``` And my library is named `MyDll`, it will create my DLL in the debug folder as `MyDLL1.dll`. If I take the version number away, it keeps the name as I want it (`MyDLL.dll`). Thanks.

Original source

Related problems