From f34b13f545bea8993b14b4ddf525ce55ed086248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 12 Jan 2017 17:24:27 +0000 Subject: [PATCH] Use kde_enable_exceptions() Summary: Don't pass -fexceptions where not supported (e.g. under MSVC) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22a6d7d..b23200d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,7 +61,6 @@ find_package(KF5 REQUIRED # use sane compile flags add_definitions( - -fexceptions -DQT_USE_QSTRINGBUILDER -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII @@ -71,6 +70,8 @@ add_definitions( -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_USE_FAST_OPERATOR_PLUS ) +kde_enable_exceptions() + find_package(PkgConfig REQUIRED) pkg_check_modules(BLKID REQUIRED blkid>=2.23)