From 1ebc1152a2307a3de61d4c18ebbd6a6f745dc95a Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Tue, 17 Jul 2018 23:03:13 +0200 Subject: [PATCH] cmake: Enable exceptions when building with KDE support The KDE cmake integration disables exceptions by default. Enable exceptions explicitly in the build system so our code builds. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a59ab825..d968a68a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -571,7 +571,7 @@ if (KDE4_FOUND) set(EMBED_DATA OFF) # Better have the compile flags global, even for the core, to avoid problems with linking the mono client - add_definitions(-DHAVE_KDE -DHAVE_KDE4 ${KDE4_DEFINITIONS}) + add_definitions(-DHAVE_KDE -DHAVE_KDE4 ${KDE4_DEFINITIONS} ${KDE4_ENABLE_EXCEPTIONS}) set(WITH_KDE4 TRUE) endif() @@ -583,6 +583,7 @@ if (USE_QT5 AND WITH_KDE) include(KDECompilerSettings) include(KDECMakeSettings) + kde_enable_exceptions() add_definitions(-DHAVE_KDE -DHAVE_KF5) set(WITH_KF5 TRUE) endif() -- 2.20.1