Skip to content

Commit

Permalink
- fix version (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquetc authored Oct 9, 2020
1 parent a0d730e commit bec5830
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ version_from_git(
TIMESTAMP "%Y%m%d%H%M%S"
)

add_definitions(-DSKR_VERSION_STR=${VERSION})
add_definitions(-DSKR_SEMANTICVERSION_STR=${SEMVER})
add_definitions(-DSKR_GITTAG_STR=${GIT_TAG})
add_definitions(-DSKR_VERSION=${VERSION})
add_definitions(-DSKR_SEMANTIC_VERSION=${SEMVER})
add_definitions(-DSKR_GIT_TAG=${GIT_TAG})
add_compile_definitions(SKR_VERSION=${VERSION})
add_compile_definitions(SKR_SEMANTIC_VERSION=${SEMVER})
add_compile_definitions(SKR_GIT_TAG=${GIT_TAG})
add_compile_definitions(SKR_VERSION_MAJOR=${VERSION_MAJOR})
add_compile_definitions(SKR_VERSION_MINOR=${VERSION_MINOR})

project(skribisto LANGUAGES CXX VERSION ${VERSION})

Expand Down
4 changes: 2 additions & 2 deletions src/app/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ void startCore()
QCoreApplication::setOrganizationName("skribisto");
QCoreApplication::setOrganizationDomain("skribisto.eu");


QCoreApplication::setApplicationVersion(QString::number(VERSIONSTR));
QCoreApplication::setApplicationVersion(QString::number(SKR_VERSION_MAJOR) + "." + QString::number(SKR_VERSION_MINOR));
qDebug() << QCoreApplication::applicationVersion();
QString appName = "Skribisto";

QCoreApplication::setApplicationName(appName);
Expand Down

0 comments on commit bec5830

Please sign in to comment.