Skip to content

Commit cc26654

Browse files
zhiqiupangengzheng
authored andcommitted
pass PYTHON_EXECUTABLE envs to thirdparty cinn (PaddlePaddle#50142)
1 parent a94aa2b commit cc26654

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/external/cinn.cmake

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ set(CINN_OPTIONAL_ARGS
4040
-DWITH_MKL_CBLAS=${WITH_MKL}
4141
-DWITH_MKLDNN=${WITH_MKL}
4242
-DPUBLISH_LIBS=ON
43-
-DWITH_TESTING=ON)
43+
-DWITH_TESTING=ON
44+
-DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}
45+
-DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR}
46+
-DPYTHON_LIBRARIES=${PYTHON_LIBRARIES})
4447
set(CINN_BUILD_COMMAND ${CMAKE_COMMAND} --build . --target cinnapi -j)
4548
set(CINN_BINARY_DIR ${CINN_PREFIX_DIR}/src/external_cinn-build)
4649
set(CINN_LIB_NAME "libcinnapi.so")

0 commit comments

Comments
 (0)