From 607080e8885a48c90e369d6c4f5675af3252b5e7 Mon Sep 17 00:00:00 2001 From: dzhwinter Date: Tue, 23 Oct 2018 15:49:13 +0800 Subject: [PATCH] windows static library --- paddle/fluid/inference/api/demo_ci/CMakeLists.txt | 4 ++-- paddle/fluid/inference/api/demo_ci/inference_icnet.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/inference/api/demo_ci/CMakeLists.txt b/paddle/fluid/inference/api/demo_ci/CMakeLists.txt index d4e6bb3e4..4c30e1b32 100644 --- a/paddle/fluid/inference/api/demo_ci/CMakeLists.txt +++ b/paddle/fluid/inference/api/demo_ci/CMakeLists.txt @@ -71,8 +71,8 @@ link_directories("${PADDLE_LIB}/third_party/install/glog/lib") link_directories("${PADDLE_LIB}/third_party/install/gflags/lib") link_directories("${PADDLE_LIB}/paddle/fluid/inference") -add_executable(${DEMO_NAME} ${DEMO_NAME}.cc) - +# add_executable(${DEMO_NAME} ${DEMO_NAME}.cc) +add_library(${DEMO_NAME} ${DEMO_NAME}.cc) if(WITH_MKL) include_directories("${PADDLE_LIB}/third_party/install/mklml/include") set(MATH_LIB ${PADDLE_LIB}/third_party/install/mklml/lib/libmklml_intel${CMAKE_SHARED_LIBRARY_SUFFIX} diff --git a/paddle/fluid/inference/api/demo_ci/inference_icnet.cc b/paddle/fluid/inference/api/demo_ci/inference_icnet.cc index 1d7876359..869002b94 100644 --- a/paddle/fluid/inference/api/demo_ci/inference_icnet.cc +++ b/paddle/fluid/inference/api/demo_ci/inference_icnet.cc @@ -24,7 +24,7 @@ namespace paddle { -std::string DIRNAME = "./Release/infer_model"; +std::string DIRNAME = "./infer_model"; std::string DATA = "./test-image.txt"; const int C = 3; // image channel const int H = 449; // image height -- GitLab