diff --git a/paddle/operators/CMakeLists.txt b/paddle/operators/CMakeLists.txt index d0924aaf37f0b45f43f510850d85bc2894b07516..75fcc1cda165197fc4413efc6bbbc440088cb4cd 100644 --- a/paddle/operators/CMakeLists.txt +++ b/paddle/operators/CMakeLists.txt @@ -84,7 +84,7 @@ function(op_library TARGET) endif() # pybind USE_NO_KERNEL_OP - # operators may reuse code from + # HACK: if REGISTER_OP_CPU_KERNEL presents the operator must have kernel file(READ ${TARGET}.cc TARGET_CONTENT) string(REGEX MATCH "REGISTER_OP_CPU_KERNEL" regex_result "${TARGET_CONTENT}") string(REPLACE "_op" "" TARGET "${TARGET}")