mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07:00
Fix CMake generated qBittorrent's version string
${qBittorrent_VERSION} will expand to a string that ends with build number but version string from qMake doesn't end with build number
This commit is contained in:
parent
39e8eb0427
commit
8696988d53
1 changed files with 6 additions and 1 deletions
|
@ -38,7 +38,12 @@ macro(qbt_common_config)
|
||||||
cxx_variable_templates
|
cxx_variable_templates
|
||||||
)
|
)
|
||||||
|
|
||||||
set(QBT_FULL_VERSION "${qBittorrent_VERSION}${QBT_VER_STATUS}")
|
set(QBT_PROJECT_VERSION "${qBittorrent_VERSION_MAJOR}.${qBittorrent_VERSION_MINOR}.${qBittorrent_VERSION_PATCH}")
|
||||||
|
if (NOT ${qBittorrent_VERSION_TWEAK} EQUAL 0)
|
||||||
|
set(QBT_PROJECT_VERSION "${QBT_PROJECT_VERSION}.${qBittorrent_VERSION_TWEAK}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(QBT_FULL_VERSION "${QBT_PROJECT_VERSION}${QBT_VER_STATUS}")
|
||||||
|
|
||||||
target_compile_definitions(qbt_common_cfg INTERFACE
|
target_compile_definitions(qbt_common_cfg INTERFACE
|
||||||
QBT_VERSION="v${QBT_FULL_VERSION}"
|
QBT_VERSION="v${QBT_FULL_VERSION}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue