From 7e831b5a5144ed4e9ffa038b83b4b3b9762792ed Mon Sep 17 00:00:00 2001 From: zyfncg Date: Tue, 7 Dec 2021 16:28:55 +0800 Subject: [PATCH] add cmake depend for api_gen.py (#37900) --- paddle/pten/api/lib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/pten/api/lib/CMakeLists.txt b/paddle/pten/api/lib/CMakeLists.txt index 33f20a4df04..96ad9ade8e3 100644 --- a/paddle/pten/api/lib/CMakeLists.txt +++ b/paddle/pten/api/lib/CMakeLists.txt @@ -32,7 +32,7 @@ add_custom_command( COMMAND ${CMAKE_COMMAND} -E copy_if_different ${api_header_file_tmp} ${api_header_file} COMMAND ${CMAKE_COMMAND} -E copy_if_different ${api_source_file_tmp} ${api_source_file} COMMENT "copy_if_different ${api_header_file} ${api_source_file}" - DEPENDS ${api_yaml_file} + DEPENDS ${api_yaml_file} ${api_gen_file} VERBATIM) cc_library(utils_api SRCS utils.cc DEPS pten_tensor pten kernel_dispatch) -- GitLab