Don't set cmake policy when using libquotient 0.7
This commit is contained in:
@@ -36,9 +36,6 @@ if(NEOCHAT_FLATPAK)
|
|||||||
include(cmake/Flatpak.cmake)
|
include(cmake/Flatpak.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# 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(${PROJECT_VERSION}
|
ecm_setup_version(${PROJECT_VERSION}
|
||||||
VARIABLE_PREFIX NEOCHAT
|
VARIABLE_PREFIX NEOCHAT
|
||||||
VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/neochat-version.h
|
VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/neochat-version.h
|
||||||
@@ -115,6 +112,10 @@ find_package(QCoro REQUIRED)
|
|||||||
|
|
||||||
qcoro_enable_coroutines()
|
qcoro_enable_coroutines()
|
||||||
|
|
||||||
|
if(NOT Quotient_VERSION_MINOR GREATER 6)
|
||||||
|
cmake_policy(SET CMP0063 OLD)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/android/version.gradle.in ${CMAKE_BINARY_DIR}/version.gradle)
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/android/version.gradle.in ${CMAKE_BINARY_DIR}/version.gradle)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ add_executable(neochat
|
|||||||
if(Quotient_VERSION_MINOR GREATER 6)
|
if(Quotient_VERSION_MINOR GREATER 6)
|
||||||
target_compile_definitions(neochat PRIVATE QUOTIENT_07)
|
target_compile_definitions(neochat PRIVATE QUOTIENT_07)
|
||||||
else()
|
else()
|
||||||
target_sources(neochat PRIVATE accountregistry.cpp)
|
target_sources(neochat PRIVATE neochataccountregistry.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
ecm_add_app_icon(NEOCHAT_ICON ICONS ${CMAKE_SOURCE_DIR}/128-logo.png)
|
ecm_add_app_icon(NEOCHAT_ICON ICONS ${CMAKE_SOURCE_DIR}/128-logo.png)
|
||||||
|
|||||||
@@ -34,7 +34,12 @@
|
|||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
|
#ifdef QUOTIENT_07
|
||||||
#include "accountregistry.h"
|
#include "accountregistry.h"
|
||||||
|
#else
|
||||||
|
#include "neochataccountregistry.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "csapi/account-data.h"
|
#include "csapi/account-data.h"
|
||||||
#include "csapi/content-repo.h"
|
#include "csapi/content-repo.h"
|
||||||
#include "csapi/joining.h"
|
#include "csapi/joining.h"
|
||||||
|
|||||||
@@ -32,7 +32,12 @@
|
|||||||
|
|
||||||
#include "neochat-version.h"
|
#include "neochat-version.h"
|
||||||
|
|
||||||
|
#ifdef QUOTIENT_07
|
||||||
#include "accountregistry.h"
|
#include "accountregistry.h"
|
||||||
|
#else
|
||||||
|
#include "neochataccountregistry.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "actionshandler.h"
|
#include "actionshandler.h"
|
||||||
#include "blurhashimageprovider.h"
|
#include "blurhashimageprovider.h"
|
||||||
#include "chatboxhelper.h"
|
#include "chatboxhelper.h"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// SPDX-FileCopyrightText: Tobias Fella <fella@posteo.de>
|
// SPDX-FileCopyrightText: Tobias Fella <fella@posteo.de>
|
||||||
// SPDX-License-Identifier: LGPL-2.1-or-later
|
// SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
|
||||||
#include "accountregistry.h"
|
#include "neochataccountregistry.h"
|
||||||
|
|
||||||
#include "connection.h"
|
#include "connection.h"
|
||||||
|
|
||||||
Reference in New Issue
Block a user