diff --git a/paddle/phi/backends/CMakeLists.txt b/paddle/phi/backends/CMakeLists.txt index 4c7f95d8d24b6..383b9b43b7c6f 100644 --- a/paddle/phi/backends/CMakeLists.txt +++ b/paddle/phi/backends/CMakeLists.txt @@ -40,3 +40,4 @@ endif() add_library(phi_backends "${BACKENDS_SRCS}") target_link_libraries(phi_backends ${BACKENDS_DEPS}) +set_property(GLOBAL PROPERTY PHI_MODULES phi_backends)