Commit 5aaeba16 authored by Caleb Marchent's avatar Caleb Marchent Committed by Facebook Github Bot

Install executor_api.h when generated in OSS build (#1010)

Summary:
futures.h includes folly/python/executor_api.h, this header needs to be
available to downstream projects (Thrift) which use python/futures.h.
Pull Request resolved: https://github.com/facebook/folly/pull/1010

Reviewed By: Orvid

Differential Revision: D13915880

Pulled By: calebmarchent

fbshipit-source-id: 3c47fc4fe4ba425a4c12dcefd8980703765bdad5
parent 9a4e7a76
...@@ -50,9 +50,16 @@ if (PYTHON_EXTENSIONS) ...@@ -50,9 +50,16 @@ if (PYTHON_EXTENSIONS)
COMMAND COMMAND
python3 ${CMAKE_CURRENT_SOURCE_DIR}/setup.py python3 ${CMAKE_CURRENT_SOURCE_DIR}/setup.py
build_ext -f ${incs} ${libs} build_ext -f ${incs} ${libs}
BYPRODUCTS ${_cybld}/folly/executor_api.h
DEPENDS folly_pic DEPENDS folly_pic
WORKING_DIRECTORY ${_cybld}) WORKING_DIRECTORY ${_cybld})
install(
FILES ${_cybld}/folly/executor_api.h
DESTINATION ${INCLUDE_INSTALL_DIR}/folly/python
COMPONENT dev
)
# Install Folly Python Bindings # Install Folly Python Bindings
install(CODE " install(CODE "
string(REGEX REPLACE \"^(..*)$\" \"--root=\\\\1\" PYROOT \"\$ENV{DESTDIR}\") string(REGEX REPLACE \"^(..*)$\" \"--root=\\\\1\" PYROOT \"\$ENV{DESTDIR}\")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment