sapling/eden/fs/utils/CMakeLists.txt
Zeyi (Rice) Fan 287a9ff724 utils: add stack trace for Windows
Summary:
Copy from Watchman.

This allows us to show stack trace when EdenFS terminates on Windows.

Reviewed By: chadaustin

Differential Revision: D27896966

fbshipit-source-id: f3238a37a1176f879d5e6bc051ec97031c9a7096
2021-04-23 13:20:46 -07:00

44 lines
855 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.
file(GLOB UTILS_SRCS "*.cpp")
if (WIN32)
list(
REMOVE_ITEM UTILS_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/FutureUnixSocket.cpp
${CMAKE_CURRENT_SOURCE_DIR}/IoFuture.cpp
${CMAKE_CURRENT_SOURCE_DIR}/SSLContext.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Thread.cpp
${CMAKE_CURRENT_SOURCE_DIR}/UnixSocket.cpp
${CMAKE_CURRENT_SOURCE_DIR}/XAttr.cpp
)
endif()
add_library(
eden_utils STATIC
${UTILS_SRCS}
)
target_link_libraries(
eden_utils
PUBLIC
eden_build_config
eden_service_thrift_cpp
Folly::folly
)
if (WIN32)
target_link_libraries(
eden_utils
PUBLIC
Userenv.lib
Rpcrt4.lib
dbghelp.lib
)
endif()
add_subdirectory(test)