mirror of
https://github.com/facebook/sapling.git
synced 2025-01-01 09:37:56 +03:00
2442b46ee8
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
26 lines
591 B
CMake
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()
|