mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 15:12:01 +00:00
Merge branch 'pybind:master' into master
This commit is contained in:
commit
3c062608bb
@ -110,15 +110,17 @@ if(NOT DEFINED ${_Python}_EXECUTABLE)
|
|||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT ${_Python}_EXECUTABLE STREQUAL PYBIND11_PYTHON_EXECUTABLE_LAST)
|
if(DEFINED PYBIND11_PYTHON_EXECUTABLE_LAST AND NOT ${_Python}_EXECUTABLE STREQUAL
|
||||||
|
PYBIND11_PYTHON_EXECUTABLE_LAST)
|
||||||
# Detect changes to the Python version/binary in subsequent CMake runs, and refresh config if needed
|
# Detect changes to the Python version/binary in subsequent CMake runs, and refresh config if needed
|
||||||
unset(PYTHON_IS_DEBUG CACHE)
|
unset(PYTHON_IS_DEBUG CACHE)
|
||||||
unset(PYTHON_MODULE_EXTENSION CACHE)
|
unset(PYTHON_MODULE_EXTENSION CACHE)
|
||||||
set(PYBIND11_PYTHON_EXECUTABLE_LAST
|
|
||||||
"${${_Python}_EXECUTABLE}"
|
|
||||||
CACHE INTERNAL "Python executable during the last CMake run")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(PYBIND11_PYTHON_EXECUTABLE_LAST
|
||||||
|
"${${_Python}_EXECUTABLE}"
|
||||||
|
CACHE INTERNAL "Python executable during the last CMake run")
|
||||||
|
|
||||||
if(NOT DEFINED PYTHON_IS_DEBUG)
|
if(NOT DEFINED PYTHON_IS_DEBUG)
|
||||||
# Debug check - see https://stackoverflow.com/questions/646518/python-how-to-detect-debug-Interpreter
|
# Debug check - see https://stackoverflow.com/questions/646518/python-how-to-detect-debug-Interpreter
|
||||||
execute_process(
|
execute_process(
|
||||||
|
Loading…
Reference in New Issue
Block a user