Commit 6f47e15f authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Use cmakedefine01

This way we get a build time warning if the var isn't defined at all, e.g.
a missing check_include_files() CMake call.
parent 89e3eb80
Pipeline #188816 passed with stage
in 3 minutes and 2 seconds
......@@ -15,7 +15,7 @@
#include <KSharedConfig>
#include "provider/qtcalendar.h"
#ifdef HAVE_ICU
#if HAVE_ICU
#include "provider/chinesecalendar.h"
#include "provider/indiancalendar.h"
#endif
......@@ -80,7 +80,7 @@ void AlternateCalendarPluginPrivate::init()
// Load/Reload the calendar provider
switch (m_calendarSystem) {
#ifdef HAVE_ICU
#if HAVE_ICU
case CalendarSystem::Chinese:
m_calendarProvider.reset(new ChineseCalendarProvider(q, m_calendarSystem));
break;
......
#pragma once
#cmakedefine HAVE_ICU
#cmakedefine01 HAVE_ICU
Supports Markdown
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