forked from Kitware/fletch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patching pybind11 to fix premature deletion of python objects
Patching pybind11 to fix premature deletion of python objects created and wrapped in c++. This patch is based off an open PR for pybind11. pybind/pybind11#2839
- Loading branch information
1 parent
5357500
commit 0ed38a6
Showing
7 changed files
with
6,614 additions
and
1,838 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#+ | ||
# This file is called as CMake -P script for the patch step of | ||
# External_pybind11.cmake pybind11_patch and pybind11_source are defined on the command | ||
# line along with the call. | ||
#- | ||
|
||
# Patching files based off of open PR for pybind11 | ||
# https://github.com/pybind/pybind11/pull/2839 | ||
configure_file( | ||
${pybind11_patch}/cast.h | ||
${pybind11_source}/include/pybind11/ | ||
COPYONLY | ||
) | ||
|
||
configure_file( | ||
${pybind11_patch}/pybind11.h | ||
${pybind11_source}/include/pybind11/ | ||
COPYONLY | ||
) | ||
|
||
configure_file( | ||
${pybind11_patch}/detail/class.h | ||
${pybind11_source}/include/pybind11/detail | ||
COPYONLY | ||
) | ||
|
||
configure_file( | ||
${pybind11_patch}/detail/common.h | ||
${pybind11_source}/include/pybind11/detail | ||
COPYONLY | ||
) |
Oops, something went wrong.