Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
f8b8107b
Unverified
Commit
f8b8107b
authored
Nov 15, 2020
by
Frank
Committed by
GitHub
Nov 15, 2020
Browse files
fix: make FindPython2 and FindPython3 work (#2662)
parent
02746cb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/pybind11NewTools.cmake
tools/pybind11NewTools.cmake
+2
-2
No files found.
tools/pybind11NewTools.cmake
View file @
f8b8107b
...
...
@@ -144,11 +144,11 @@ if(DEFINED ${_Python}_VERSION AND ${_Python}_VERSION VERSION_LESS 3)
endif
()
# In CMake 3.18+, you can find these separately, so include an if
if
(
TARGET
${
_Python
}
::
${
_
Python
}
)
if
(
TARGET
${
_Python
}
::Python
)
set_property
(
TARGET pybind11::embed
APPEND
PROPERTY INTERFACE_LINK_LIBRARIES
${
_Python
}
::
${
_
Python
}
)
PROPERTY INTERFACE_LINK_LIBRARIES
${
_Python
}
::Python
)
endif
()
# CMake 3.15+ has this
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment