From: Stella Laurenzo Date: Tue, 24 Nov 2020 17:50:18 +0000 (+0000) Subject: [mlir][Python] Fix the last remaining instance of PYTHON_EXECUTABLE. X-Git-Tag: llvmorg-13-init~5233 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15481bba1ff2c03ff969cba8e0e7c37888f966a3;p=platform%2Fupstream%2Fllvm.git [mlir][Python] Fix the last remaining instance of PYTHON_EXECUTABLE. * Was causing auto-detect of pybind11 to fail on clean configure. Differential Revision: https://reviews.llvm.org/D92043 --- diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt index c10a169..1acdec2 100644 --- a/mlir/CMakeLists.txt +++ b/mlir/CMakeLists.txt @@ -61,7 +61,7 @@ option(MLIR_INCLUDE_INTEGRATION_TESTS # 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 index e3572c3..2a3d1fa 100644 --- a/mlir/cmake/modules/MLIRDetectPythonEnv.cmake +++ b/mlir/cmake/modules/MLIRDetectPythonEnv.cmake @@ -10,7 +10,7 @@ function(mlir_detect_pybind11_install) 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