Qt-不要在可执行文件/库名称的末尾附加主要版本号 [英] Qt - Don't append major version number to the end of executable/library name
本文介绍了Qt-不要在可执行文件/库名称的末尾附加主要版本号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何阻止Qt将DLL重命名为MyDLLName{MAJOR_VERSION_NUM}.dll
?
How can I stop Qt from renaming my DLL to MyDLLName{MAJOR_VERSION_NUM}.dll
?
这仅在我在项目文件中设置VERSION
时发生,但我也想设置版本.例如,如果我有:
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
我的库名为MyDll
,它将在调试文件夹中将我的DLL创建为MyDLL1.dll
.如果我不带版本号,它将保留我想要的名称(MyDLL.dll
).
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
).
谢谢.
推荐答案
使用此:
CONFIG += skip_target_version_ext
这篇关于Qt-不要在可执行文件/库名称的末尾附加主要版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文