File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,10 @@ if(WITH_PYTHON)
262
262
list (APPEND OP_FUNCTION_GENERETOR_DEPS cncl_context )
263
263
endif ()
264
264
265
+ if (NOT ((NOT WITH_PYTHON ) AND ON_INFER ))
266
+ list (APPEND OP_FUNCTION_GENERETOR_DEPS ${PYTHON_LIBRARIES} )
267
+ endif ()
268
+
265
269
add_executable (op_function_generator op_function_generator.cc )
266
270
target_link_libraries (op_function_generator ${OP_FUNCTION_GENERETOR_DEPS} )
267
271
add_executable (eager_legacy_op_function_generator
@@ -601,4 +605,6 @@ if(WITH_PYTHON)
601
605
get_property (os_dependency_modules GLOBAL PROPERTY OS_DEPENDENCY_MODULES )
602
606
target_link_libraries (${SHARD_LIB_NAME} ${os_dependency_modules} )
603
607
add_dependencies (${SHARD_LIB_NAME} op_function_generator_cmd )
608
+
609
+ target_link_libraries (${SHARD_LIB_NAME} ${PYTHON_LIBRARIES} )
604
610
endif ()
You can’t perform that action at this time.
0 commit comments