-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set major versions via variables for Qt Creator version
- Loading branch information
1 parent
b47adb3
commit af866d7
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,10 @@ set(CPACK_GENERATOR "ZIP") | |
set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_SOURCE_DIR}/packaging/cpack-config.cmake") | ||
|
||
# Debian package settings | ||
math(EXPR PROJECT_VERSION_MAJOR_NEXT "${PROJECT_VERSION_MAJOR}+1") | ||
math(EXPR QTC_COMPAT_MAJOR_NEXT "${QTC_COMPAT_MAJOR}+1") | ||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Christian Rauch <[email protected]>") | ||
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS YES) | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "qtcreator (>=${PROJECT_VERSION_MAJOR}), qtcreator (<<${PROJECT_VERSION_MAJOR_NEXT})") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "qtcreator (>=${QTC_COMPAT_MAJOR}), qtcreator (<<${QTC_COMPAT_MAJOR_NEXT})") | ||
set(CPACK_DEBIAN_DEBUGINFO_PACKAGE ON) | ||
|
||
include(CPack) |