[mlir][Python] Fix the last remaining instance of PYTHON_EXECUTABLE.
authorStella Laurenzo <stellaraccident@gmail.com>
Tue, 24 Nov 2020 17:50:18 +0000 (17:50 +0000)
committerStella Laurenzo <stellaraccident@gmail.com>
Tue, 24 Nov 2020 17:56:05 +0000 (17:56 +0000)
* Was causing auto-detect of pybind11 to fail on clean configure.

Differential Revision: https://reviews.llvm.org/D92043

mlir/CMakeLists.txt
mlir/cmake/modules/MLIRDetectPythonEnv.cmake

index c10a169..1acdec2 100644 (file)
@@ -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
 # ---------------
index e3572c3..2a3d1fa 100644 (file)
@@ -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