As discussed in #3524 and #3503, when users want to link the static c-api library, they need to link those third party libraries, such glog, gflags, zlib, protobuf and openblas, into their application at the same time. However,
- Users may do not know the position of these libraries which are under
build/third_party.
- The
build directory may be deleted after make install.
Thus, when Paddle is configured with WITH_C_API=ON, all the automatically downloaded, built and compiled third party libraries should be installed.