From 14e58ca358803d8a10dfa2bd846037c8f351e791 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 21 Nov 2020 19:22:07 +0100 Subject: [PATCH] Fix a crash when opening rooms with quotient from package managers Some problem with static initialisation in quotient causes the event system to fail in some situations. We can work around this by setting cmake policy 0063 to OLD. Fixes #4 See also https://github.com/quotient-im/libQuotient/issues/413 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 627e56e65..fa604322e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,9 @@ include(KDEClangFormat) include(KDECMakeSettings) include(KDECompilerSettings NO_POLICY_SCOPE) +# Fix a crash due to problems with quotient's event system. Can probably be removed once the reworked event system is in +cmake_policy(SET CMP0063 OLD) + ecm_setup_version(0.1.0 VARIABLE_PREFIX NEOCHAT VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/neochat-version.h