--- CMakeLists.txt.orig	2026-07-25 07:21:34 UTC
+++ CMakeLists.txt
@@ -142,15 +142,15 @@ file(GENERATE
 file(GENERATE
    OUTPUT "$<TARGET_FILE_DIR:PyDIP_bin>/cmake_pip_install.cmake"
    CONTENT "file(STRINGS $<TARGET_FILE_DIR:PyDIP_bin>/wheel.txt PYDIP_WHEEL_NAME)
-   execute_process(COMMAND ${PYTHON_EXECUTABLE} -m pip install --upgrade --force-reinstall \${PYDIP_WHEEL_NAME})"
+   execute_process(COMMAND ${Python_EXECUTABLE} -m pip install --upgrade --force-reinstall \${PYDIP_WHEEL_NAME})"
 )
 
 add_custom_target(staging
-                  COMMAND ${PYTHON_EXECUTABLE} $<TARGET_FILE_DIR:PyDIP_bin>/stage_wheel.py
+                  COMMAND ${Python_EXECUTABLE} $<TARGET_FILE_DIR:PyDIP_bin>/stage_wheel.py
                   DEPENDS PyDIP)
 
 add_custom_target(bdist_wheel
-                  COMMAND ${CMAKE_COMMAND} -E chdir $<TARGET_FILE_DIR:PyDIP_bin>/staging ${PYTHON_EXECUTABLE} -m build --wheel --no-isolation
+                  COMMAND ${CMAKE_COMMAND} -E chdir $<TARGET_FILE_DIR:PyDIP_bin>/staging ${Python_EXECUTABLE} -m build --wheel --no-isolation
                   DEPENDS staging)
 
 add_custom_target(pip_install
@@ -158,7 +158,7 @@ add_custom_target(pip_uninstall
                   DEPENDS bdist_wheel)
 
 add_custom_target(pip_uninstall
-                  COMMAND ${PYTHON_EXECUTABLE} -m pip uninstall diplib)
+                  COMMAND ${Python_EXECUTABLE} -m pip uninstall diplib)
 
 # PyDIP unit tests
 # Resolve standard CMake variables
@@ -171,7 +171,7 @@ add_custom_target(PyDIP_check
 )
 
 add_custom_target(PyDIP_check
-                  COMMAND ${CMAKE_COMMAND} -E chdir $<TARGET_FILE_DIR:PyDIP_bin> ${PYTHON_EXECUTABLE} $<TARGET_FILE_DIR:PyDIP_bin>/unit_tests.py
+                  COMMAND ${CMAKE_COMMAND} -E chdir $<TARGET_FILE_DIR:PyDIP_bin> ${Python_EXECUTABLE} $<TARGET_FILE_DIR:PyDIP_bin>/unit_tests.py
                   DEPENDS staging)
 if(TARGET check)
    add_dependencies(check PyDIP_check)
