diff --git a/fdbclient/CMakeLists.txt b/fdbclient/CMakeLists.txt index b919457ff3..35c19af845 100644 --- a/fdbclient/CMakeLists.txt +++ b/fdbclient/CMakeLists.txt @@ -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_dependencies(fdbclient_sampling fdboptions fdb_c_options) target_link_libraries(fdbclient_sampling PUBLIC fdbrpc_sampling msgpack) +add_dependencies(fdbclient_sampling_actors fdbclient_actors) target_compile_definitions(fdbclient_sampling PRIVATE -DENABLE_SAMPLING) if(BUILD_AZURE_BACKUP) diff --git a/fdbrpc/CMakeLists.txt b/fdbrpc/CMakeLists.txt index 46313804ed..85f29bfb92 100644 --- a/fdbrpc/CMakeLists.txt +++ b/fdbrpc/CMakeLists.txt @@ -70,6 +70,7 @@ add_flow_target(STATIC_LIBRARY NAME fdbrpc_sampling target_include_directories(fdbrpc_sampling PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/libeio) target_link_libraries(fdbrpc_sampling PUBLIC flow_sampling) target_compile_definitions(fdbrpc_sampling PRIVATE -DENABLE_SAMPLING) +add_dependencies(fdbrpc_sampling_actors fdbrpc_actors) if(COMPILE_EIO) add_library(eio STATIC libeio/eio.c) diff --git a/flow/CMakeLists.txt b/flow/CMakeLists.txt index 0efa987c82..3eeea18ec2 100644 --- a/flow/CMakeLists.txt +++ b/flow/CMakeLists.txt @@ -129,6 +129,7 @@ target_link_libraries(flow PRIVATE stacktrace) add_flow_target(STATIC_LIBRARY NAME flow_sampling SRCS ${FLOW_SRCS}) target_link_libraries(flow_sampling PRIVATE stacktrace) target_compile_definitions(flow_sampling PRIVATE -DENABLE_SAMPLING) +add_dependencies(flow_sampling_actors flow_actors) if (NOT APPLE AND NOT WIN32) set (FLOW_LIBS ${FLOW_LIBS} rt)