[Bug 304020] New: Come up with a standardised less-rubbish way of setting versions

David Edmundson kde at davidedmundson.co.uk
Tue Jul 24 19:31:05 BST 2012


https://bugs.kde.org/show_bug.cgi?id=304020

            Bug ID: 304020
          Severity: normal
           Version: 0.4
          Priority: NOR
          Assignee: kde-telepathy-bugs at kde.org
           Summary: Come up with a standardised less-rubbish way of
                    setting versions
    Classification: Unclassified
                OS: Linux
          Reporter: kde at davidedmundson.co.uk
          Hardware: Other
            Status: NEW
         Component: general
           Product: telepathy

LightDM-KDE has a pretty good method, I suggest copying that.

Something like (in CMakeLists)

# Versions
set(KTP_VERSION_MAJOR 0)
set(KTP_VERSION_MINOR 2)
set(KTP_VERSION_PATCH 0)
set(KTP_VERSION ${KTP_VERSION_MAJOR}.${KTP_VERSION_MINOR}.${KTP_VERSION_PATCH})

then the rest is done with CMake's
configure_file

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list