Fix some link dependencies.
GitOrigin-RevId: 12d110232437c787821c49d884dca9335c6e3eeb
This commit is contained in:
parent
bffbded1d5
commit
46a958212c
@ -907,7 +907,7 @@ if (NOT CMAKE_CROSSCOMPILING)
|
||||
target_compile_definitions(tg_cli PRIVATE -DUSE_READLINE=1)
|
||||
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)
|
||||
endif()
|
||||
|
||||
|
@ -41,7 +41,7 @@ add_executable(bench_misc bench_misc.cpp)
|
||||
target_link_libraries(bench_misc PRIVATE tdcore tdutils)
|
||||
|
||||
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)
|
||||
target_link_libraries(check_tls PRIVATE tdutils)
|
||||
|
@ -27,7 +27,7 @@ set(TESTS_MAIN
|
||||
|
||||
add_library(all_tests STATIC ${TD_TEST_SOURCE})
|
||||
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)
|
||||
#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")
|
||||
endif()
|
||||
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)
|
||||
# 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")
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user