Add dependencies between sampling and non-sampling actors projects

This commit is contained in:
Mohamed Oulmahdi 2021-08-18 16:01:57 +02:00
parent 72f4ad5451
commit 2c5510011c
3 changed files with 3 additions and 0 deletions

View File

@ -191,6 +191,7 @@ target_link_libraries(fdbclient PUBLIC fdbrpc msgpack)
add_flow_target(STATIC_LIBRARY NAME fdbclient_sampling SRCS ${FDBCLIENT_SRCS} ADDL_SRCS ${options_srcs}) add_flow_target(STATIC_LIBRARY NAME fdbclient_sampling SRCS ${FDBCLIENT_SRCS} ADDL_SRCS ${options_srcs})
add_dependencies(fdbclient_sampling fdboptions fdb_c_options) add_dependencies(fdbclient_sampling fdboptions fdb_c_options)
target_link_libraries(fdbclient_sampling PUBLIC fdbrpc_sampling msgpack) target_link_libraries(fdbclient_sampling PUBLIC fdbrpc_sampling msgpack)
add_dependencies(fdbclient_sampling_actors fdbclient_actors)
target_compile_definitions(fdbclient_sampling PRIVATE -DENABLE_SAMPLING) target_compile_definitions(fdbclient_sampling PRIVATE -DENABLE_SAMPLING)
if(BUILD_AZURE_BACKUP) if(BUILD_AZURE_BACKUP)

View File

@ -70,6 +70,7 @@ add_flow_target(STATIC_LIBRARY NAME fdbrpc_sampling
target_include_directories(fdbrpc_sampling PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/libeio) target_include_directories(fdbrpc_sampling PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/libeio)
target_link_libraries(fdbrpc_sampling PUBLIC flow_sampling) target_link_libraries(fdbrpc_sampling PUBLIC flow_sampling)
target_compile_definitions(fdbrpc_sampling PRIVATE -DENABLE_SAMPLING) target_compile_definitions(fdbrpc_sampling PRIVATE -DENABLE_SAMPLING)
add_dependencies(fdbrpc_sampling_actors fdbrpc_actors)
if(COMPILE_EIO) if(COMPILE_EIO)
add_library(eio STATIC libeio/eio.c) add_library(eio STATIC libeio/eio.c)

View File

@ -129,6 +129,7 @@ target_link_libraries(flow PRIVATE stacktrace)
add_flow_target(STATIC_LIBRARY NAME flow_sampling SRCS ${FLOW_SRCS}) add_flow_target(STATIC_LIBRARY NAME flow_sampling SRCS ${FLOW_SRCS})
target_link_libraries(flow_sampling PRIVATE stacktrace) target_link_libraries(flow_sampling PRIVATE stacktrace)
target_compile_definitions(flow_sampling PRIVATE -DENABLE_SAMPLING) target_compile_definitions(flow_sampling PRIVATE -DENABLE_SAMPLING)
add_dependencies(flow_sampling_actors flow_actors)
if (NOT APPLE AND NOT WIN32) if (NOT APPLE AND NOT WIN32)
set (FLOW_LIBS ${FLOW_LIBS} rt) set (FLOW_LIBS ${FLOW_LIBS} rt)