sapling/eden/fs/utils/CMakeLists.txt
Xavier Deguillard 4038c01e9f utils: remove //eden/fs/utils/test:linux_test
Summary:
The skip_on_mode_mac argument to cpp_unittest doesn't exist on Windows, and to
be consistent with the rest of the code, we can simply ifdef the code that
either doesn't compile, or doesn't run.

Note: For some reason the accessIncrementsAccessCount test fails when running
on Windows, but only if running after accessAddsProcessToProcessNameCache...

Reviewed By: chadaustin

Differential Revision: D24496450

fbshipit-source-id: fe18fe1d791a27fbe4bd03bd3e8c811feeb23f5f
2020-11-16 08:29:04 -08:00

42 lines
820 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
)
endif()
add_subdirectory(test)