diff --git a/test/cpp/fluid/lite/CMakeLists.txt b/test/cpp/fluid/lite/CMakeLists.txt index 46c2ff159bb7dd5026da5accefc17bacfc4c7e95..f02783b313639b347a51fa335083ff62a139e877 100644 --- a/test/cpp/fluid/lite/CMakeLists.txt +++ b/test/cpp/fluid/lite/CMakeLists.txt @@ -1,8 +1,4 @@ -cc_test_old( - test_lite_engine_op - SRCS - lite_engine_op_test.cc - DEPS - fleet_executor - lite_engine_op - analysis) +get_property(paddle_lib GLOBAL PROPERTY PADDLE_LIB_NAME) + +cc_test_old(test_lite_engine_op SRCS lite_engine_op_test.cc DEPS ${paddle_lib} + python)