Created by: zhouwei25
fix bug of the cmake variable protobuf_MSVC_STATIC_CRT=MSVC_STATIC_CRT
,
It is should only be set on Windows.
If on Linux, MSVC_STATIC_CRT
will be empty, and set protobuf_MSVC_STATIC_RUNTIME
be empty. It will effect the default value of protobuf_MSVC_STATIC_RUNTIME
in CMakeLists.txt
of protobuf repository.
These will make PACKAGE_VERSION
unsuitable.
Expected:
It will result:
The protobuf compiled by PaddlePaddle can not be used by other projects, that is, find_package (protobuf)
will report an error:
This bug is feedback by internal RD.