Make CMake fail when libQuotient version is newer than 0.6

This commit is contained in:
Tobias Fella
2021-02-18 22:41:58 +01:00
parent b67a35bfe3
commit 89f9ec1ba6

View File

@@ -74,6 +74,10 @@ 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