Skip to content

Commit d8cca11

Browse files
committed
Incorporated feedback
1 parent 975869f commit d8cca11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/pybind11NewTools.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ if(NOT DEFINED ${_Python}_EXECUTABLE)
8282

8383
endif()
8484

85-
if(NOT ${_Python}_EXECUTABLE STREQUAL ${_Python}_EXECUTABLE_LAST)
85+
if(NOT ${_Python}_EXECUTABLE STREQUAL PYTHON_EXECUTABLE_LAST)
8686
# Detect changes to the Python version/binary in subsequent CMake runs, and refresh config if needed
8787
unset(PYTHON_IS_DEBUG CACHE)
8888
unset(PYTHON_MODULE_EXTENSION CACHE)
89-
set(${_Python}_EXECUTABLE_LAST
89+
set(PYTHON_EXECUTABLE_LAST
9090
"${${_Python}_EXECUTABLE}"
9191
CACHE INTERNAL "Python executable during the last CMake run")
9292
endif()

0 commit comments

Comments
 (0)