fix: a couple more places where pybind11 is missing 11 (#2421)

This commit is contained in:
Henry Schreiner 2020-08-21 15:27:21 -04:00 committed by GitHub
parent d4d7ef5d27
commit 56df3c4649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1767,7 +1767,7 @@ detail::enable_if_t<!detail::move_never<T>::value, T> move(object &&obj) {
return ret; return ret;
} }
// Calling cast() on an rvalue calls pybind::cast with the object rvalue, which does: // Calling cast() on an rvalue calls pybind11::cast with the object rvalue, which does:
// - If we have to move (because T has no copy constructor), do it. This will fail if the moved // - If we have to move (because T has no copy constructor), do it. This will fail if the moved
// object has multiple references, but trying to copy will fail to compile. // object has multiple references, but trying to copy will fail to compile.
// - If both movable and copyable, check ref count: if 1, move; otherwise copy // - If both movable and copyable, check ref count: if 1, move; otherwise copy

View File

@ -79,7 +79,7 @@ execute_process(COMMAND ${_Python}::Python -c "import sys; print(hasattr(sys, 'g
# https://stackoverflow.com/questions/39161202/how-to-work-around-missing-pymodule-create2-in-amd64-win-python35-d-lib # https://stackoverflow.com/questions/39161202/how-to-work-around-missing-pymodule-create2-in-amd64-win-python35-d-lib
if(PYTHON_IS_DEBUG) if(PYTHON_IS_DEBUG)
set_property( set_property(
TARGET pybind::pybind11 TARGET pybind11::pybind11
APPEND APPEND
PROPERTY INTERFACE_COMPILE_DEFINITIONS Py_DEBUG) PROPERTY INTERFACE_COMPILE_DEFINITIONS Py_DEBUG)
endif() endif()