From 433c2ffb5155ccc5fcc21699780afbfaaf519326 Mon Sep 17 00:00:00 2001 From: risemeup1 <62429225+risemeup1@users.noreply.github.com> Date: Wed, 22 Feb 2023 11:45:41 +0800 Subject: [PATCH] fix ninja and make incremental compiling error (#50616) --- paddle/phi/api/profiler/CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/paddle/phi/api/profiler/CMakeLists.txt b/paddle/phi/api/profiler/CMakeLists.txt index 3efe78c634a..82d8819f914 100644 --- a/paddle/phi/api/profiler/CMakeLists.txt +++ b/paddle/phi/api/profiler/CMakeLists.txt @@ -3,11 +3,7 @@ proto_library(phi_profiler_proto SRCS profiler.proto) if(WITH_PYTHON AND EXISTS ${PADDLE_BINARY_DIR}) set(FLUID_PATH ${PADDLE_BINARY_DIR}/python/paddle/fluid) py_proto_compile(profiler_py_proto SRCS profiler.proto) - - add_custom_target(profiler_py_proto_init ALL COMMAND ${CMAKE_COMMAND} -E - touch __init__.py) - add_dependencies(profiler_py_proto profiler_py_proto_init) - + file(TOUCH __init__.py) if(NOT WIN32) add_custom_command( TARGET profiler_py_proto -- GitLab