Skip to content

Commit 12b06ae

Browse files
committed
Prepare release 0.6 and add version string output files.
1 parent 2cf4310 commit 12b06ae

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,17 @@ set_target_properties(projecteur PROPERTIES
7878
VERSION_MAJOR 0
7979
VERSION_MINOR 6
8080
VERSION_PATCH 0
81-
VERSION_TYPE develop
81+
VERSION_TYPE release
8282
)
8383
add_version_info(projecteur "${CMAKE_CURRENT_SOURCE_DIR}")
8484

85+
# Create files containing generated version strings, helping package maintainers
86+
get_target_property(PROJECTEUR_VERSION_STRING projecteur VERSION_STRING)
87+
# Arch Linux = PKGBUILD/makepkg: '-' is not allowed in version number
88+
string(REPLACE "-" "" PROJECTEUR_VERSION_STRING_ARCHLINUX "${PROJECTEUR_VERSION_STRING}")
89+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/version-string" "${PROJECTEUR_VERSION_STRING}")
90+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/version-string.archlinux" "${PROJECTEUR_VERSION_STRING_ARCHLINUX}")
91+
8592
# Translation
8693
list(APPEND languages de fr es)
8794
set(ts_directories "${CMAKE_CURRENT_SOURCE_DIR}/i18n")

0 commit comments

Comments
 (0)