forked from mindspore-Ecosystem/mindspore
!16163 [MS][LITE]Fix schema gen
From: @gongdaguo Reviewed-by: @jpc_chenjianping,@hangangqiang Signed-off-by: @jpc_chenjianping
This commit is contained in:
commit
be36653265
|
@ -13,11 +13,11 @@ add_executable(schema_gen
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/schema_gen.cc
|
||||
${COMMON_SRC})
|
||||
|
||||
#add_custom_command(
|
||||
# OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/../../schema/ops.fbs
|
||||
# COMMAND ${CMAKE_BINARY_DIR}/tools/schema_gen/schema_gen --exportPath=${CMAKE_CURRENT_SOURCE_DIR}/../../schema/
|
||||
# DEPENDS schema_gen
|
||||
# WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
|
||||
# COMMENT "Running Generate ops.fbs" VERBATIM)
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/../../schema/ops.fbs
|
||||
COMMAND ${CMAKE_BINARY_DIR}/tools/schema_gen/schema_gen --exportPath=${CMAKE_CURRENT_SOURCE_DIR}/../../schema/
|
||||
DEPENDS schema_gen
|
||||
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
|
||||
COMMENT "Running Generate ops.fbs" VERBATIM)
|
||||
|
||||
add_custom_target(gen_ops ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../../schema/ops.fbs)
|
||||
|
|
Loading…
Reference in New Issue