From fed19de9b7fc7ca66bc7a9fb4d20ff5c4e2aaf8a Mon Sep 17 00:00:00 2001 From: wangguibao Date: Tue, 6 Aug 2019 20:02:04 +0800 Subject: [PATCH] Fix CMakeLists.txt --- demo-serving/CMakeLists.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/demo-serving/CMakeLists.txt b/demo-serving/CMakeLists.txt index 81370f95..dcb6e310 100644 --- a/demo-serving/CMakeLists.txt +++ b/demo-serving/CMakeLists.txt @@ -5,13 +5,25 @@ if (NOT EXISTS --output-document ${CMAKE_CURRENT_LIST_DIR}/data/model/paddle/fluid/text_classification_lstm.tar.gz) - execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf + execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf "${CMAKE_CURRENT_LIST_DIR}/data/model/paddle/fluid/text_classification_lstm.tar.gz" WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/data/model/paddle/fluid ) endif() +if (NOT EXISTS + ${CMAKE_CURRENT_LIST_DIR}/data/model/paddle/fluid/ctr_prediction) + execute_process(COMMAND wget --no-check-certificate + https://paddle-serving.bj.bcebos.com/data/ctr_prediction/ctr_prediction.tar.gz + --output-document + ${CMAKE_CURRENT_LIST_DIR}/data/model/paddle/fluid/ctr_prediction.tar.gz) + execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf + "${CMAKE_CURRENT_LIST_DIR}/data/model/paddle/fluid/ctr_prediction.tar.gz" + WORKING_DIRECTORY + ${CMAKE_CURRENT_LIST_DIR}/data/model/paddle/fluid) +endif() + include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/../kvdb/include) find_library(MKLML_LIBS NAMES libmklml_intel.so libiomp5.so) include(op/CMakeLists.txt) -- GitLab