File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ add_custom_command(
121
121
122
122
add_custom_command (
123
123
OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /python/.timestamp
124
- COMMAND python3 ${CMAKE_CURRENT_BINARY_DIR} /setup.py bdist_wheel
124
+ COMMAND ${Python_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR} /setup.py bdist_wheel
125
125
DEPENDS ${CUSTOM_MLU_NAME}
126
126
COMMENT "Packing whl packages------>>>" )
127
127
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ Configuring cmake in build ...
40
40
-DWITH_MKL=${WITH_MKL}
41
41
-DWITH_ARM=${WITH_ARM}
42
42
-DON_INFER=${ON_INFER:- OFF}
43
+ -DPYTHON_VERSION=${PYTHON_VERSION:- " " }
43
44
========================================
44
45
EOF
45
46
@@ -51,6 +52,7 @@ cmake .. \
51
52
-DWITH_MKL=${WITH_MKL:- ON} \
52
53
-DWITH_ARM=${WITH_ARM:- OFF} \
53
54
-DON_INFER=${ON_INFER:- OFF} \
55
+ -DPYTHON_VERSION=${PYTHON_VERSION:- " " } \
54
56
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON; cmake_error=$?
55
57
56
58
if [ " $cmake_error " != 0 ]; then
You can’t perform that action at this time.
0 commit comments