diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt --- a/mlir/CMakeLists.txt +++ b/mlir/CMakeLists.txt @@ -61,7 +61,7 @@ # Python Bindings Configuration # Requires: # The pybind11 library can be found (set with -DPYBIND_DIR=...) -# The python executable is correct (set with -DPYTHON_EXECUTABLE=...) +# The python executable is correct (set with -DPython3_EXECUTABLE=...) # # Version locking # --------------- diff --git a/mlir/cmake/modules/MLIRDetectPythonEnv.cmake b/mlir/cmake/modules/MLIRDetectPythonEnv.cmake --- a/mlir/cmake/modules/MLIRDetectPythonEnv.cmake +++ b/mlir/cmake/modules/MLIRDetectPythonEnv.cmake @@ -10,7 +10,7 @@ else() message(CHECK_START "Checking for pybind11 in python path...") execute_process( - COMMAND "${PYTHON_EXECUTABLE}" + COMMAND "${Python3_EXECUTABLE}" -c "import pybind11;print(pybind11.get_cmake_dir(), end='')" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} RESULT_VARIABLE STATUS