From 79e6369e27bb5844cceef765ece9e545b1515bce Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 22 Jul 2020 19:58:40 +0400 Subject: [PATCH] Move libatomic link to common_options --- Telegram/CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index ff67668c40..453f8ced65 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -183,16 +183,6 @@ if (LINUX AND NOT TDESKTOP_DISABLE_GTK_INTEGRATION) endif() endif() -# Telegram uses long atomic types, so on some architectures libatomic is needed. -check_cxx_source_compiles(" -#include -std::atomic_int64_t foo; -int main() {return foo;} -" HAVE_LONG_ATOMIC_WITHOUT_LIB) -if (NOT HAVE_LONG_ATOMIC_WITHOUT_LIB) - target_link_libraries(Telegram PRIVATE atomic) -endif() - target_precompile_headers(Telegram PRIVATE ${src_loc}/stdafx.h) nice_target_sources(Telegram ${src_loc} PRIVATE