Commit 65dd8ccf authored by Alex Merry's avatar Alex Merry

Fix build with libkipi 5.0

The case/names of the CMake variables were being used instead of the
preprocessor names, which meant the checks did not work.
parent 04ccba78
......@@ -468,7 +468,7 @@ KIPI::MetadataProcessor* KIPIInterface::createMetadataProcessor() const
return NULL;
}
#if Kipi_LIB_VERSION_MAJOR == 5 && Kipi_VERSION_MINOR == 0
#ifdef GWENVIEW_KIPI_WITH_CREATE_RAW_PROCESSOR
KIPI::RawProcessor* KIPIInterface::createRawProcessor() const
{
return NULL;
......
......@@ -35,6 +35,9 @@ class QAction;
#endif
#if KIPI_VERSION_MAJOR >= 5
#define GWENVIEW_KIPI_WITH_CREATE_METHODS
#if KIPI_VERSION_MINOR == 0
# define GWENVIEW_KIPI_WITH_CREATE_RAW_PROCESSOR
#endif
#endif
namespace Gwenview
......@@ -71,7 +74,7 @@ public:
#ifdef GWENVIEW_KIPI_WITH_CREATE_METHODS
virtual KIPI::FileReadWriteLock* createReadWriteLock(const QUrl& url) const;
virtual KIPI::MetadataProcessor* createMetadataProcessor() const;
#if Kipi_VERSION_MAJOR == 5 && Kipi_VERSION_MINOR == 0
#ifdef GWENVIEW_KIPI_WITH_CREATE_RAW_PROCESSOR
virtual KIPI::RawProcessor* createRawProcessor() const;
#endif
#endif
......
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