Skip to content

Add find python debug executable #5581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

olizit
Copy link

@olizit olizit commented Mar 26, 2025

Description

Allow to find a debug executable of python.

This PR is a part of a larger vcpkg issue

Suggested changelog entry:

FindPython: allow to find debug python executable

@olizit olizit marked this pull request as ready for review March 26, 2025 09:05
@olizit olizit requested a review from henryiii as a code owner March 26, 2025 09:05
@olizit olizit marked this pull request as draft March 26, 2025 09:26
set(PYBIND11_PYTHON_EXECUTABLE_LAST
"${${_Python}_EXECUTABLE}"
CACHE INTERNAL "Python executable during the last CMake run")
if(CMAKE_BUILD_TYPE STREQUAL "Debug"
Copy link
Collaborator

@henryiii henryiii Mar 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multi-configuration generators (like MSVC or Ninja multi config) configure for both at the same time, how does this interact with those?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants