Fix some link dependencies.

GitOrigin-RevId: 12d110232437c787821c49d884dca9335c6e3eeb
This commit is contained in:
levlam 2020-02-24 01:29:51 +03:00
parent bffbded1d5
commit 46a958212c
3 changed files with 5 additions and 5 deletions

View File

@ -907,7 +907,7 @@ if (NOT CMAKE_CROSSCOMPILING)
target_compile_definitions(tg_cli PRIVATE -DUSE_READLINE=1) target_compile_definitions(tg_cli PRIVATE -DUSE_READLINE=1)
endif() endif()
endif() endif()
target_link_libraries(tg_cli PRIVATE memprof tdclient tdcore tdtl) target_link_libraries(tg_cli PRIVATE memprof tdclient tdcore)
add_dependencies(tg_cli tl_generate_json) add_dependencies(tg_cli tl_generate_json)
endif() endif()

View File

@ -41,7 +41,7 @@ add_executable(bench_misc bench_misc.cpp)
target_link_libraries(bench_misc PRIVATE tdcore tdutils) target_link_libraries(bench_misc PRIVATE tdcore tdutils)
add_executable(check_proxy check_proxy.cpp) add_executable(check_proxy check_proxy.cpp)
target_link_libraries(check_proxy PRIVATE tdclient tdcore) target_link_libraries(check_proxy PRIVATE tdclient tdutils)
add_executable(check_tls check_tls.cpp) add_executable(check_tls check_tls.cpp)
target_link_libraries(check_tls PRIVATE tdutils) target_link_libraries(check_tls PRIVATE tdutils)

View File

@ -27,7 +27,7 @@ set(TESTS_MAIN
add_library(all_tests STATIC ${TD_TEST_SOURCE}) add_library(all_tests STATIC ${TD_TEST_SOURCE})
target_include_directories(all_tests PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) target_include_directories(all_tests PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
target_link_libraries(all_tests PRIVATE tdactor tddb tdcore tdnet tdutils tdclient) target_link_libraries(all_tests PRIVATE tdcore tdclient)
if (NOT CMAKE_CROSSCOMPILING OR EMSCRIPTEN) if (NOT CMAKE_CROSSCOMPILING OR EMSCRIPTEN)
#Tests #Tests
@ -37,11 +37,11 @@ if (NOT CMAKE_CROSSCOMPILING OR EMSCRIPTEN)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=undefined -fno-sanitize=vptr") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=undefined -fno-sanitize=vptr")
endif() endif()
target_include_directories(run_all_tests PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) target_include_directories(run_all_tests PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
target_link_libraries(run_all_tests PRIVATE tdactor tddb tdcore tdnet tdutils tdclient) target_link_libraries(run_all_tests PRIVATE tdcore tdclient)
if (CLANG) if (CLANG)
# add_executable(fuzz_url fuzz_url.cpp) # add_executable(fuzz_url fuzz_url.cpp)
# target_link_libraries(fuzz_url PRIVATE tdclient) # target_link_libraries(fuzz_url PRIVATE tdcore)
# target_compile_options(fuzz_url PRIVATE "-fsanitize-coverage=trace-pc-guard") # target_compile_options(fuzz_url PRIVATE "-fsanitize-coverage=trace-pc-guard")
endif() endif()