Commit 082d0f1b authored by Harald Sitter's avatar Harald Sitter 🚔

move version definition into generated header instead of passing it on CLI

Summary:
easier to for IDEs to follow where it comes from and also more in line
with how other defines are set in drkonqi

Test Plan: builds

Reviewers: jriddell, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19543
parent cdcd5ad0
......@@ -85,8 +85,6 @@ ecm_qt_declare_logging_category(drkonqi_SRCS HEADER drkonqi_debug.h IDENTIFIER D
add_executable(drkonqi ${drkonqi_SRCS})
ecm_mark_nongui_executable(drkonqi)
target_compile_definitions(drkonqi PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}")
target_link_libraries(drkonqi
KF5::I18n
KF5::CoreAddons
......
......@@ -4,3 +4,5 @@
#define HAVE_XMLRPCCLIENT 1
#define DEBUG_PACKAGE_INSTALLER_NAME "@DEBUG_PACKAGE_INSTALLER_NAME@"
#define PROJECT_VERSION "@PROJECT_VERSION@"
......@@ -42,6 +42,7 @@
#include <KWindowSystem>
#endif
#include "config-drkonqi.h"
#include "drkonqi.h"
#include "drkonqidialog.h"
#include "statusnotifier.h"
......
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