Skip to content

Commit 56df3c4

Browse files
authored
fix: a couple more places where pybind11 is missing 11 (#2421)
1 parent d4d7ef5 commit 56df3c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/pybind11/cast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ detail::enable_if_t<!detail::move_never<T>::value, T> move(object &&obj) {
17671767
return ret;
17681768
}
17691769

1770-
// Calling cast() on an rvalue calls pybind::cast with the object rvalue, which does:
1770+
// Calling cast() on an rvalue calls pybind11::cast with the object rvalue, which does:
17711771
// - If we have to move (because T has no copy constructor), do it. This will fail if the moved
17721772
// object has multiple references, but trying to copy will fail to compile.
17731773
// - If both movable and copyable, check ref count: if 1, move; otherwise copy

tools/pybind11NewTools.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ execute_process(COMMAND ${_Python}::Python -c "import sys; print(hasattr(sys, 'g
7979
# https://stackoverflow.com/questions/39161202/how-to-work-around-missing-pymodule-create2-in-amd64-win-python35-d-lib
8080
if(PYTHON_IS_DEBUG)
8181
set_property(
82-
TARGET pybind::pybind11
82+
TARGET pybind11::pybind11
8383
APPEND
8484
PROPERTY INTERFACE_COMPILE_DEFINITIONS Py_DEBUG)
8585
endif()

0 commit comments

Comments
 (0)