From 4473effba246f59024a8c180b5db034218810aff Mon Sep 17 00:00:00 2001 From: Yancey Date: Wed, 16 May 2018 17:11:03 +0800 Subject: [PATCH] fix build capi failed (#10694) * fix build capi * update by comment --- paddle/CMakeLists.txt | 2 +- paddle/scripts/paddle_build.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/CMakeLists.txt b/paddle/CMakeLists.txt index 8b1ca5e1654..d722eec1892 100644 --- a/paddle/CMakeLists.txt +++ b/paddle/CMakeLists.txt @@ -24,6 +24,6 @@ if(NOT WITH_FLUID_ONLY) endif() add_subdirectory(testing) -if(NOT MOBILE_INFERENCE AND NOT RPI) +if(NOT MOBILE_INFERENCE AND NOT RPI AND NOT WITH_C_API) add_subdirectory(fluid) endif() diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 5bef232cd8f..cb0624eac4f 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -504,6 +504,7 @@ function main() { ;; capi) cmake_gen ${PYTHON_ABI:-""} + build gen_capi_package ;; fluid_inference_lib) -- GitLab