sapling/eden/cli/CMakeLists.txt
Adam Simpkins 0351c6c772 update the CLI to exit with the correct status for CMake-based builds
Summary:
The Python 3 zipapp module always exits with return code 0 if the main
function returns.  Therefore we need to add our own wrapper function that
handles calling `sys.exit()` if we want to exit with a non-zero status.

Reviewed By: wez

Differential Revision: D17678021

fbshipit-source-id: 5944c75d8e765ab3e3fa038fa6f2eee95ab0e780
2019-10-01 08:21:56 -07:00

18 lines
460 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 EDENFSCTL_SRCS "*.py" "doctor/*.py")
add_fb_python_executable(
edenfsctl
MAIN_MODULE eden.cli.main:zipapp_main
SOURCES ${EDENFSCTL_SRCS}
DEPENDS
eden_py
eden_overlay_thrift_py
eden_service_thrift_py
FBThrift::thrift_py_inspect
python-toml::python-toml
)