We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02746cb commit f8b8107Copy full SHA for f8b8107
tools/pybind11NewTools.cmake
@@ -144,11 +144,11 @@ if(DEFINED ${_Python}_VERSION AND ${_Python}_VERSION VERSION_LESS 3)
144
endif()
145
146
# In CMake 3.18+, you can find these separately, so include an if
147
-if(TARGET ${_Python}::${_Python})
+if(TARGET ${_Python}::Python)
148
set_property(
149
TARGET pybind11::embed
150
APPEND
151
- PROPERTY INTERFACE_LINK_LIBRARIES ${_Python}::${_Python})
+ PROPERTY INTERFACE_LINK_LIBRARIES ${_Python}::Python)
152
153
154
# CMake 3.15+ has this
0 commit comments