From e48c882f42fe3bca4c1d707098be99fd7ab04659 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Thu, 2 Feb 2023 10:43:01 +0800 Subject: [PATCH] pass PYTHON_EXECUTABLE envs to thirdparty cinn (#50142) --- cmake/external/cinn.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/external/cinn.cmake b/cmake/external/cinn.cmake index 3ec194a6bf..5e23a0f36f 100644 --- a/cmake/external/cinn.cmake +++ b/cmake/external/cinn.cmake @@ -40,7 +40,10 @@ set(CINN_OPTIONAL_ARGS -DWITH_MKL_CBLAS=${WITH_MKL} -DWITH_MKLDNN=${WITH_MKL} -DPUBLISH_LIBS=ON - -DWITH_TESTING=ON) + -DWITH_TESTING=ON + -DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE} + -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR} + -DPYTHON_LIBRARIES=${PYTHON_LIBRARIES}) set(CINN_BUILD_COMMAND ${CMAKE_COMMAND} --build . --target cinnapi -j) set(CINN_BINARY_DIR ${CINN_PREFIX_DIR}/src/external_cinn-build) set(CINN_LIB_NAME "libcinnapi.so") -- GitLab