diff --git a/paddle/fluid/inference/capi/CMakeLists.txt b/paddle/fluid/inference/capi/CMakeLists.txt index adacc5efe27fc..32f780122bcd6 100644 --- a/paddle/fluid/inference/capi/CMakeLists.txt +++ b/paddle/fluid/inference/capi/CMakeLists.txt @@ -26,7 +26,4 @@ cc_library(paddle_inference_c_shared SHARED SRCS ${C_API_SRCS} DEPS paddle_infer set_target_properties(paddle_inference_c_shared PROPERTIES OUTPUT_NAME paddle_inference_c) if(WIN32) target_link_libraries(paddle_inference_c_shared shlwapi.lib) - if("${CMAKE_GENERATOR}" STREQUAL "Ninja") - target_link_libraries(paddle_inference_c_shared analysis_predictor) - endif() endif() diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index 664b139c8a803..5d095e99c3d1f 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -348,7 +348,7 @@ set build_times=1 rem clcache.exe -z echo Build Paddle the %build_times% time: -if "%GENERATOR%" == "Ninja" ( +if %GENERATOR% == "Ninja" ( ninja -j %PARALLEL_PROJECT_COUNT% ) else ( if "%WITH_CLCACHE%"=="OFF" (