remove ia64 keywords
[gentoo-zh.git] / dev-libs / tdlib / files / tdlib-1.5.0-multilib.patch
blob7f56b221c142491ebc86e0fcd20703b65836b082
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index fde2bcb..8e5c089 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -1,5 +1,9 @@
6 cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
8 +if (NOT DEFINED LIB)
9 + set(LIB "lib")
10 +endif(NOT DEFINED LIB)
12 project(TDLib VERSION 1.5.0 LANGUAGES CXX C)
14 if (POLICY CMP0054)
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
28 FILE TdTargets.cmake
29 NAMESPACE Td::
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