QMAKE - VERSION adds number to build library file
-
wrote on 6 Jul 2016, 15:45 last edited by ck_ee 7 Jun 2016, 15:46
I use VERSION to set the version number in application and libraries. When i build applications everything works fine. When building .dll files the first version number is added after the filename:
VERSION = 2.10.30.50 TEMPLATE = lib TARGET = mylib
compiles to "mylib2.dll"
any ideas how to change that?
-
I use VERSION to set the version number in application and libraries. When i build applications everything works fine. When building .dll files the first version number is added after the filename:
VERSION = 2.10.30.50 TEMPLATE = lib TARGET = mylib
compiles to "mylib2.dll"
any ideas how to change that?
-
wrote on 7 Jul 2016, 07:25 last edited by ck_ee 7 Jul 2016, 08:11
this looks like too much work for a simple problem like that .. why am i forced to a certain naming policy!?
-
I use VERSION to set the version number in application and libraries. When i build applications everything works fine. When building .dll files the first version number is added after the filename:
VERSION = 2.10.30.50 TEMPLATE = lib TARGET = mylib
compiles to "mylib2.dll"
any ideas how to change that?
Moderatorswrote on 8 Jul 2016, 17:05 last edited by kshegunov 7 Aug 2016, 17:07@ck_ee
Hi,
For various reasons that's how windows' libraries ordinarily handle versioning (if you look the Qt 5 dlls, you'll see the same thing).
On Linux it works as expected, I get:libraryname.so.2.10.30
with tree additional symbolic links that point to the aforementioned shared object:
libraryname.so.2.10
libraryname.so.2
libraryname.so
If you want to manipulate the name of the target, use the
TARGET
variable.Kind regards.
-
wrote on 14 Oct 2024, 14:27 last edited by
Use
CONFIG += skip_target_version_ext