File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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)
8383add_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
8693list (APPEND languages de fr es)
8794set (ts_directories "${CMAKE_CURRENT_SOURCE_DIR} /i18n" )
You can’t perform that action at this time.
0 commit comments