!16163 [MS][LITE]Fix schema gen

From: @gongdaguo
Reviewed-by: @jpc_chenjianping,@hangangqiang
Signed-off-by: @jpc_chenjianping
This commit is contained in:
mindspore-ci-bot 2021-05-11 09:21:41 +08:00 committed by Gitee
commit be36653265
1 changed files with 6 additions and 6 deletions

View File

@ -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)