diff --git a/fdbservice/CMakeLists.txt b/fdbservice/CMakeLists.txt index 56c44003e0..cffcfc83bc 100644 --- a/fdbservice/CMakeLists.txt +++ b/fdbservice/CMakeLists.txt @@ -1,4 +1,6 @@ set(FDBSERVICE_SRCS FDBService.cpp ServiceBase.cpp) add_executable(fdbmonitor ${FDBSERVICE_SRCS}) -target_include_directories(fdmonitor ${CMAKE_SOURCE_DIR}) + +target_include_directories(fdbmonitor PRIVATE ${CMAKE_BINARY_DIR}/flow/include ${CMAKE_BINARY_DIR}/fdbclient/include) +add_dependencies(fdbmonitor fdbclient) \ No newline at end of file