未验证 提交 433c2ffb 编写于 作者: R risemeup1 提交者: GitHub

fix ninja and make incremental compiling error (#50616)

上级 93b2bf4b
...@@ -3,11 +3,7 @@ proto_library(phi_profiler_proto SRCS profiler.proto) ...@@ -3,11 +3,7 @@ proto_library(phi_profiler_proto SRCS profiler.proto)
if(WITH_PYTHON AND EXISTS ${PADDLE_BINARY_DIR}) if(WITH_PYTHON AND EXISTS ${PADDLE_BINARY_DIR})
set(FLUID_PATH ${PADDLE_BINARY_DIR}/python/paddle/fluid) set(FLUID_PATH ${PADDLE_BINARY_DIR}/python/paddle/fluid)
py_proto_compile(profiler_py_proto SRCS profiler.proto) py_proto_compile(profiler_py_proto SRCS profiler.proto)
file(TOUCH __init__.py)
add_custom_target(profiler_py_proto_init ALL COMMAND ${CMAKE_COMMAND} -E
touch __init__.py)
add_dependencies(profiler_py_proto profiler_py_proto_init)
if(NOT WIN32) if(NOT WIN32)
add_custom_command( add_custom_command(
TARGET profiler_py_proto TARGET profiler_py_proto
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册