diff --git a/paddle/fluid/pybind/CMakeLists.txt b/paddle/fluid/pybind/CMakeLists.txt index 8ad4dc1db94b01f9ce44304e6228ad2bae2f7dfb..b30214e1d83559f31758a85c797e3a410ad1ad61 100644 --- a/paddle/fluid/pybind/CMakeLists.txt +++ b/paddle/fluid/pybind/CMakeLists.txt @@ -58,7 +58,7 @@ set(PYBIND_SRCS compatible.cc generator_py.cc) -if(WITH_ASCEND OR WITH_ASCEND_CL) +if(WITH_ASCEND) set(PYBIND_DEPS ${PYBIND_DEPS} ascend_wrapper) set(PYBIND_SRCS ${PYBIND_SRCS} ascend_wrapper_py.cc) endif()