diff --git a/paddle/contrib/inference/CMakeLists.txt b/paddle/contrib/inference/CMakeLists.txt index 8562bea0ed30f0420d056814d56372fe67140e7b..bfd38eb22fe6848a7e193ae378db7df312924995 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