We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 975869f commit d8cca11Copy full SHA for d8cca11
tools/pybind11NewTools.cmake
@@ -82,11 +82,11 @@ if(NOT DEFINED ${_Python}_EXECUTABLE)
82
83
endif()
84
85
-if(NOT ${_Python}_EXECUTABLE STREQUAL ${_Python}_EXECUTABLE_LAST)
+if(NOT ${_Python}_EXECUTABLE STREQUAL PYTHON_EXECUTABLE_LAST)
86
# Detect changes to the Python version/binary in subsequent CMake runs, and refresh config if needed
87
unset(PYTHON_IS_DEBUG CACHE)
88
unset(PYTHON_MODULE_EXTENSION CACHE)
89
- set(${_Python}_EXECUTABLE_LAST
+ set(PYTHON_EXECUTABLE_LAST
90
"${${_Python}_EXECUTABLE}"
91
CACHE INTERNAL "Python executable during the last CMake run")
92
0 commit comments