Commit fa85148f authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Compose RELEASE_SERVICE_VERSION into version number

Summary:
version was increased to 1.4 "recently" and not so many changes have been done since them
so asserting the verison number is stuck in the past is a bit too much, but still having it move with
each new release is important for reproducibility of issues, etc. so compromise and append the version at the end

Differential Revision: https://phabricator.kde.org/D27750
parent 2a4226ef
project(ksudoku)
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
set (RELEASE_SERVICE_VERSION_MAJOR "20")
set (RELEASE_SERVICE_VERSION_MINOR "03")
set (RELEASE_SERVICE_VERSION_MICRO "70")
set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
project(ksudoku VERSION "1.4.${RELEASE_SERVICE_COMPACT_VERSION}")
set (QT_MIN_VERSION "5.11.0")
set (KF5_MIN_VERSION "5.46.0")
......@@ -33,6 +40,7 @@ include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMQtDeclareLoggingCategory)
include(ECMInstallIcons)
include(ECMSetupVersion)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
......
......@@ -26,6 +26,8 @@ set(ksudoku_SRCS
generator/mathdokugenerator.cpp
)
ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX KSUDOKU VERSION_HEADER ksudoku_version.h)
ecm_qt_declare_logging_category(ksudoku_SRCS
HEADER ksudoku_logging.h
IDENTIFIER KSudokuLog
......
......@@ -21,6 +21,7 @@
***************************************************************************/
#include "ksudoku.h"
#include "ksudoku_version.h"
#include <KAboutData>
#include <KCrash>
......@@ -39,9 +40,6 @@
static const char description[] =
I18N_NOOP("KSudoku - Sudokus and more");
static const char version[] = "1.4";
int main(int argc, char **argv)
{
qsrand(std::time(nullptr));
......@@ -50,7 +48,7 @@ int main(int argc, char **argv)
KAboutData about(QStringLiteral("ksudoku"),
i18n("KSudoku"),
version,
KSUDOKU_VERSION_STRING,
i18n(description),
KAboutLicense::GPL_V2,
i18n("(c) 2005-2007 The KSudoku Authors"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment