From c96fc04fa74e5ae8b17e4494e9f84d9b7ed9764e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Garramu=C3=B1o?= Date: Fri, 20 Oct 2023 14:16:01 -0300 Subject: [PATCH] Updated Buildpybind11.cmake to locate compiled python. --- cmake/Modules/Buildpybind11.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/Modules/Buildpybind11.cmake b/cmake/Modules/Buildpybind11.cmake index 1231b235c..1f3067330 100644 --- a/cmake/Modules/Buildpybind11.cmake +++ b/cmake/Modules/Buildpybind11.cmake @@ -21,6 +21,8 @@ ExternalProject_Add( -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} + -DPython_EXECUTABLE=${Python_EXECUTABLE} + -DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE} -DPYBIND11_TEST:BOOL=OFF )