Make NeoChat compile against libQuotient master and 0.6

Requires a few ugly ifdefs, but it will make developing against the
master branch of libQuotient easier
This commit is contained in:
Tobias Fella
2021-04-23 23:53:03 +02:00
parent a117eaa12b
commit 08632b4178
5 changed files with 28 additions and 4 deletions

View File

@@ -85,10 +85,6 @@ set_package_properties(Quotient PROPERTIES
PURPOSE "Talk with matrix server"
)
if(${Quotient_VERSION_MINOR} GREATER 6)
message(SEND_ERROR "NeoChat cannot be compiled against a 0.7 version of libQuotient. Use a 0.6 version instead")
endif()
find_package(cmark)
set_package_properties(cmark PROPERTIES
TYPE REQUIRED