1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index fde2bcb..8e5c089 100644
6 cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
10 +endif(NOT DEFINED LIB)
12 project(TDLib VERSION 1.5.0 LANGUAGES CXX C)
15 @@ -893,8 +897,8 @@ add_library(Td::TdJson ALIAS TdJson)
16 add_library(Td::TdJsonStatic ALIAS TdJsonStatic)
18 install(TARGETS tdjson TdJson tdjson_static TdJsonStatic tdjson_private tdclient tdcore TdStatic EXPORT TdTargets
19 - LIBRARY DESTINATION lib
20 - ARCHIVE DESTINATION lib
21 + LIBRARY DESTINATION ${LIB}
22 + ARCHIVE DESTINATION ${LIB}
23 RUNTIME DESTINATION bin
24 INCLUDES DESTINATION include
26 @@ -902,7 +906,7 @@ install(TARGETS tdjson TdJson tdjson_static TdJsonStatic tdjson_private tdclient
27 install(EXPORT TdTargets
30 - DESTINATION lib/cmake/Td
31 + DESTINATION ${LIB}/cmake/Td
34 install(FILES ${TD_JSON_HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/td/telegram/tdjson_export.h DESTINATION include/td/telegram)
35 @@ -919,7 +923,7 @@ write_basic_package_version_file("TdConfigVersion.cmake"
36 COMPATIBILITY ExactVersion
38 install(FILES "TdConfig.cmake" "${CMAKE_CURRENT_BINARY_DIR}/TdConfigVersion.cmake"
39 - DESTINATION lib/cmake/Td
40 + DESTINATION ${LIB}/cmake/Td
43 # Add SOVERSION to shared libraries