* Was causing auto-detect of pybind11 to fail on clean configure.
Differential Revision: https://reviews.llvm.org/D92043
# 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
# ---------------
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