From eeaf7673b8cb7f1354a0a280c19050a1607eab4c Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Tue, 10 Jul 2018 22:28:06 +0800 Subject: [PATCH] fix depends --- paddle/contrib/inference/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/contrib/inference/CMakeLists.txt b/paddle/contrib/inference/CMakeLists.txt index 75dbfb62554..8562bea0ed3 100644 --- a/paddle/contrib/inference/CMakeLists.txt +++ b/paddle/contrib/inference/CMakeLists.txt @@ -61,11 +61,11 @@ if(NOT APPLE) "if(NOT \"\${symbol_res}\" STREQUAL \"0\")\n" " message(FATAL_ERROR \"Check symbol failed.\")\n" "endif()\n") - add_custom_target(check_symbol ALL) add_custom_command( - TARGET check_symbol - COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/check_symbol.cmake + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/.check_symbol + COMMAND ${CMAKE_COMMAND} -P ${cmake_current_binary_dir}/check_symbol.cmake DEPENDS paddle_inference_api_shared) + add_custom_target(check_symbol ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/.check_symbol) endif() cc_test(test_paddle_inference_api -- GitLab