Commit 8d1088c0 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Use project version instead of undefined PLYMOUTH_KCM_VERSION

parent aca25cd6
......@@ -3,7 +3,6 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kcm_plymouth\")
SET(PLYMOUTH_THEMES_DIR "/usr/share/plymouth/themes/" CACHE STRING "Where Plymouth themes are installed")
SET(PLYMOUTH_CONFIG_PATH "/etc/plymouth/plymouthd.conf" CACHE STRING "where the main plymouth config file is")
set(PLYMOUNT_KCM_VERSION ${PROJECT_VERSION})
configure_file (config-kcm.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kcm.h )
set(kcm_plymouth_SRCS
......
#cmakedefine PLYMOUTH_THEMES_DIR "@PLYMOUTH_THEMES_DIR@"
#cmakedefine PLYMOUTH_CONFIG_PATH "@PLYMOUTH_CONFIG_PATH@"
#define PLYMOUTH_KCM_VERSION "@PLYMOUTH_KCM_VERSION@"
#define PROJECT_VERSION "@PROJECT_VERSION@"
......@@ -60,7 +60,7 @@ KCMPlymouth::KCMPlymouth(QObject* parent, const QVariantList& args)
qmlRegisterAnonymousType<KCMPlymouth>("KCMPlymouth", 1);
#endif
KAboutData* about = new KAboutData(QStringLiteral("kcm_plymouth"), i18n("Boot Splash Screen"),
QStringLiteral(PLYMOUTH_KCM_VERSION), QString(), KAboutLicense::LGPL);
QStringLiteral(PROJECT_VERSION), QString(), KAboutLicense::LGPL);
about->addAuthor(i18n("Marco Martin"), QString(), QStringLiteral("mart@kde.org"));
setAboutData(about);
setButtons(Apply);
......
......@@ -44,7 +44,7 @@ int main(int argc, char **argv)
const QString description = i18n("Plymouth theme installer");
app.setApplicationVersion(QStringLiteral(PLYMOUTH_KCM_VERSION));
app.setApplicationVersion(QStringLiteral(PROJECT_VERSION));
parser.addVersionOption();
parser.addHelpOption();
parser.setApplicationDescription(description);
......
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