summarylogtreecommitdiffstats
path: root/CMakeLists.inj
blob: 0f12632c29a02de407ed89434bf9200941204a3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# ------------- debian/CMakeLists.inj begin -------------
# The text will be putted into the appropriate CMakeLists by debian/rules script

# Avoid rpath compiler parameter
set_target_properties(Telegram PROPERTIES SKIP_BUILD_RPATH TRUE)

# This makes up for patch of gyp utility, supporting precompiled headers. If
# Telegram/Patches/gyp.diff file will be changed in future, please check these
# lines.
include(../../Telegram/gyp/PrecompiledHeader.cmake)
add_precompiled_header(Telegram ../../Telegram/SourceFiles/stdafx.h)
add_precompiled_header(lib_export ../../Telegram/SourceFiles/export/export_pch.h)

# use gcc-ar and gcc-nm, also from gyp.diff
# https://github.com/telegramdesktop/tdesktop/commit/1e10529f20507e1d22a287ef5e4de88f72d592ca
set(CMAKE_NM "/usr/bin/gcc-nm")
set(CMAKE_RANLIB "/usr/bin/gcc-ranlib")

# vim: ft=cmake
# -------------- debian/CMakeLists.inj end --------------