Don't set cmake policy when using libquotient 0.7

This commit is contained in:
Tobias Fella
2022-01-02 22:47:42 +01:00
parent 183c3227a9
commit ca8702fd5e
6 changed files with 16 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ add_executable(neochat
if(Quotient_VERSION_MINOR GREATER 6)
target_compile_definitions(neochat PRIVATE QUOTIENT_07)
else()
target_sources(neochat PRIVATE accountregistry.cpp)
target_sources(neochat PRIVATE neochataccountregistry.cpp)
endif()
ecm_add_app_icon(NEOCHAT_ICON ICONS ${CMAKE_SOURCE_DIR}/128-logo.png)

View File

@@ -34,7 +34,12 @@
#include <signal.h>
#ifdef QUOTIENT_07
#include "accountregistry.h"
#else
#include "neochataccountregistry.h"
#endif
#include "csapi/account-data.h"
#include "csapi/content-repo.h"
#include "csapi/joining.h"

View File

@@ -32,7 +32,12 @@
#include "neochat-version.h"
#ifdef QUOTIENT_07
#include "accountregistry.h"
#else
#include "neochataccountregistry.h"
#endif
#include "actionshandler.h"
#include "blurhashimageprovider.h"
#include "chatboxhelper.h"

View File

@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: Tobias Fella <fella@posteo.de>
// SPDX-License-Identifier: LGPL-2.1-or-later
#include "accountregistry.h"
#include "neochataccountregistry.h"
#include "connection.h"