From e4e0ffdbf2c218c952045ba36502bd5adc350dca Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Wed, 11 Jul 2018 10:42:05 +0800 Subject: [PATCH] fix check_symbol cmake error --- paddle/contrib/inference/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/contrib/inference/CMakeLists.txt b/paddle/contrib/inference/CMakeLists.txt index 8562bea0ed3..bfd38eb22fe 100644 --- a/paddle/contrib/inference/CMakeLists.txt +++ b/paddle/contrib/inference/CMakeLists.txt @@ -62,10 +62,10 @@ if(NOT APPLE) " message(FATAL_ERROR \"Check symbol failed.\")\n" "endif()\n") add_custom_command( - 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) + 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