Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
f8b8107b
Unverified
Commit
f8b8107b
authored
Nov 15, 2020
by
Frank
Committed by
GitHub
Nov 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: make FindPython2 and FindPython3 work (#2662)
parent
02746cb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
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)
...
@@ -144,11 +144,11 @@ if(DEFINED ${_Python}_VERSION AND ${_Python}_VERSION VERSION_LESS 3)
endif
()
endif
()
# In CMake 3.18+, you can find these separately, so include an if
# In CMake 3.18+, you can find these separately, so include an if
if
(
TARGET
${
_Python
}
::
${
_Python
}
)
if
(
TARGET
${
_Python
}
::
Python
)
set_property
(
set_property
(
TARGET pybind11::embed
TARGET pybind11::embed
APPEND
APPEND
PROPERTY INTERFACE_LINK_LIBRARIES
${
_Python
}
::
${
_Python
}
)
PROPERTY INTERFACE_LINK_LIBRARIES
${
_Python
}
::
Python
)
endif
()
endif
()
# CMake 3.15+ has this
# 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