diff --git a/paddle/framework/CMakeLists.txt b/paddle/framework/CMakeLists.txt index 503a6db7b46019960e877d7ee7b12ed47f0c0269..dcbfae0b565f85172c5b4c763a909a35594d43d9 100644 --- a/paddle/framework/CMakeLists.txt +++ b/paddle/framework/CMakeLists.txt @@ -42,11 +42,11 @@ add_custom_command(TARGET framework_py_proto POST_BUILD cc_library(backward SRCS backward.cc DEPS net_op) cc_test(backward_test SRCS backward_test.cc DEPS backward recurrent_op device_context) -cc_library(executor SRCS executor.cc DEPS op_registry device_context scope framework_proto backward ${GLOB_OP_LIB}) +cc_library(executor SRCS executor.cc DEPS op_registry device_context scope framework_proto backward) if(WITH_GPU) - nv_test(executor_test SRCS executor_test.cc DEPS executor) + nv_test(executor_test SRCS executor_test.cc DEPS executor ${GLOB_OP_LIB}) else() - cc_test(executor_test SRCS executor_test.cc DEPS executor) + cc_test(executor_test SRCS executor_test.cc DEPS executor ${GLOB_OP_LIB}) endif() cc_library(tensor_array SRCS tensor_array.cc DEPS lod_tensor)