sapling/eden/fs/inodes/CMakeLists.txt
Adam Simpkins 930a743673 fix some library dependencies in CMakeLists.txt files
Summary:
This fixes a few issues with the library dependencies:
- The `eden_utils` library depends on `eden_service_thrift`, not
  `eden_service`.  By incorrectly depending on `eden_service` this introduced
  a circular dependency which would cause a build failure, depending on which
  order CMake chose to try and emit the link line.
- The `eden_config` library depends on code from `eden_model` (for `Hash` and
  `ParentCommits`)
- The `eden_inodes` library depends on `eden_model_git` for the `GitIgnore`
  logic.  I also alphabetized the dependency list.

Reviewed By: wez

Differential Revision: D17124930

fbshipit-source-id: 70cbe81081fc1dc807cca13a93edc25ba270b01f
2019-08-29 22:28:32 -07:00

44 lines
876 B
CMake

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
if (WIN32)
# We should try detaching ServerState from the inodes
# so that we don't need to make the Windows code depend
# on it.
add_library(
eden_inodes STATIC
ServerState.cpp
)
target_link_libraries(
eden_inodes
PUBLIC
eden_journal
Folly::folly
)
else()
file(GLOB INODES_SRCS "*.cpp")
add_library(
eden_inodes STATIC
${INODES_SRCS}
)
target_link_libraries(
eden_inodes
PUBLIC
eden_config
eden_fuse
eden_journal
eden_model_git
eden_overlay_thrift
eden_overlay
eden_service
eden_store
eden_takeover_thrift
eden_tracing
eden_utils
)
add_subdirectory(overlay)
endif()