sapling/eden/scm/lib/clib/CMakeLists.txt
Adam Simpkins 2442b46ee8 cmake: always build support for the EdenSCM backing store
Summary:
Now that the fb-mercurial sources are available in the Eden repository, update
our CMake build files to always build them.  This moves the build logic from
the centralized `FBMercurialFeatures.cmake` file into `CMakeLists.txt` files
in the appropriate subdirectories.

Reviewed By: chadaustin

Differential Revision: D18588011

fbshipit-source-id: ded9decde5c2ec766aae0bb0f4f5b021d1044a98
2019-11-22 13:00:07 -08:00

26 lines
591 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.
add_library(
eden_buffer
STATIC
buffer.c
)
target_include_directories(
eden_buffer
PUBLIC
"${CMAKE_SOURCE_DIR}/eden/scm"
)
target_link_libraries(
eden_buffer
PUBLIC
OpenSSL::Crypto
)
if (WIN32)
# We need to define EDEN_WIN to include the correct definition of mman.h,
# which is different for Mercurial Windows and Eden Windows.
target_compile_definitions(eden_buffer PUBLIC EDEN_WIN)
endif()