Skip to content

Commit

Permalink
Install executor_api.h when generated in OSS build (#1010)
Browse files Browse the repository at this point in the history
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: #1010

Reviewed By: Orvid

Differential Revision: D13915880

Pulled By: calebmarchent

fbshipit-source-id: 3c47fc4fe4ba425a4c12dcefd8980703765bdad5
  • Loading branch information
Caleb Marchent authored and facebook-github-bot committed Feb 5, 2019
1 parent 9a4e7a7 commit 5aaeba1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions folly/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,16 @@ if (PYTHON_EXTENSIONS)
COMMAND
python3 ${CMAKE_CURRENT_SOURCE_DIR}/setup.py
build_ext -f ${incs} ${libs}
BYPRODUCTS ${_cybld}/folly/executor_api.h
DEPENDS folly_pic
WORKING_DIRECTORY ${_cybld})

install(
FILES ${_cybld}/folly/executor_api.h
DESTINATION ${INCLUDE_INSTALL_DIR}/folly/python
COMPONENT dev
)

# Install Folly Python Bindings
install(CODE "
string(REGEX REPLACE \"^(..*)$\" \"--root=\\\\1\" PYROOT \"\$ENV{DESTDIR}\")
Expand Down

0 comments on commit 5aaeba1

Please sign in to comment.