Exclude from all tdc target. Now it should be compiled with --target tdc.

GitOrigin-RevId: 88a6aceb36517d66ab3160c5b0194a6abeff4b21
This commit is contained in:
levlam 2018-10-22 18:49:05 +03:00
parent 92fbabbe1a
commit fbf7f5fd91

View File

@ -689,7 +689,7 @@ if (TD_ENABLE_DOTNET)
endif() endif()
# tdc - TDLib interface in pure c. # tdc - TDLib interface in pure c.
add_library(tdc STATIC ${TL_C_SCHEME_SOURCE} td/telegram/td_c_client.cpp td/telegram/td_c_client.h) add_library(tdc STATIC EXCLUDE_FROM_ALL ${TL_C_SCHEME_SOURCE} td/telegram/td_c_client.cpp td/telegram/td_c_client.h)
target_include_directories(tdc PUBLIC target_include_directories(tdc PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${TL_TD_AUTO_INCLUDES}>) $<BUILD_INTERFACE:${TL_TD_AUTO_INCLUDES}>)