From 80563b0525516ca7f2088d0615b33f2b0a8d1130 Mon Sep 17 00:00:00 2001 From: risemeup1 <62429225+risemeup1@users.noreply.github.com> Date: Wed, 6 Sep 2023 10:38:40 +0800 Subject: [PATCH] make test_lite_engine_op linked to libpaddle.so (#56978) * fix bug * fix bug --- test/cpp/fluid/lite/CMakeLists.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/cpp/fluid/lite/CMakeLists.txt b/test/cpp/fluid/lite/CMakeLists.txt index 46c2ff159bb..f02783b3136 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) -- GitLab