Skip to content

Commit f31a0da

Browse files
committed
Restore inference CMakeLists.txt
1 parent 25ad688 commit f31a0da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paddle/fluid/inference/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cc_library(paddle_fluid DEPS ${fluid_modules})
1111
# Create shared library
1212
cc_library(paddle_fluid_shared SHARED
1313
SRCS io.cc
14-
DEPS ${ARCHIVE_START} ${GLOB_OP_LIB} ${FLUID_CORE_MODULES} ${ARCHIVE_START})
14+
DEPS ARCHIVE_START ${GLOB_OP_LIB} ${FLUID_CORE_MODULES} ARCHIVE_END)
1515
set_target_properties(paddle_fluid_shared PROPERTIES OUTPUT_NAME paddle_fluid)
1616
if(NOT APPLE)
1717
# TODO(liuyiqun): Temporarily disable the link flag because it is not support on Mac.

paddle/fluid/inference/tests/book/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function(inference_test TARGET_NAME)
1717
string(REGEX REPLACE "^_$" "" arg "${arg}")
1818
cc_test(test_inference_${TARGET_NAME}${arg}
1919
SRCS test_inference_${TARGET_NAME}.cc
20-
DEPS ${ARCHIVE_BEGIN} paddle_fluid ${ARCHIVE_END}
20+
DEPS ARCHIVE_START paddle_fluid ARCHIVE_END
2121
ARGS --dirname=${PYTHON_TESTS_DIR}/book/${TARGET_NAME}${arg}.inference.model)
2222
set_tests_properties(test_inference_${TARGET_NAME}${arg}
2323
PROPERTIES DEPENDS test_${TARGET_NAME})

0 commit comments

Comments
 (0)