Skip to content

Commit

Permalink
Require tdlib exactly 1.7.9 as next version is already incompatible lol
Browse files Browse the repository at this point in the history
  • Loading branch information
Arseniy Lartsev committed Dec 8, 2021
1 parent 9dd584d commit f7829a4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ project(tdlib-purple VERSION ${VERSION} LANGUAGES CXX)

find_package(Td REQUIRED)
math(EXPR TDLIB_VERSION_NUMBER "10000*${Td_VERSION_MAJOR} + 100*${Td_VERSION_MINOR} + ${Td_VERSION_PATCH}")
if (${TDLIB_VERSION_NUMBER} LESS 10709)
if (NOT(${TDLIB_VERSION_NUMBER} EQUAL 10709))
# Error message must begin with "tdlib version" for a grep command from readme
message(FATAL_ERROR "tdlib version 1.7.9 or newer is required")
endif (${TDLIB_VERSION_NUMBER} LESS 10709)
message(FATAL_ERROR "tdlib version 1.7.9 is required
(version found: ${Td_VERSION_MAJOR}.${Td_VERSION_MINOR}.${Td_VERSION_PATCH})")
endif (NOT(${TDLIB_VERSION_NUMBER} EQUAL 10709))

set(NoPkgConfig FALSE CACHE BOOL "Do not use pkg-config")
set(NoWebp FALSE CACHE BOOL "Do not decode webp stickers")
Expand Down

0 comments on commit f7829a4

Please sign in to comment.