【发布时间】:2021-04-28 12:34:23
【问题描述】:
当我使用 autogen 构建共享 protobuf(版本 3.15.8)库时,我得到 libprotoc.so.26:
./autogen.sh
./configure --enable-shared
make
当我使用 cmake 构建它时,我得到 libprotobuf.so.3.15.8.0。
cd cmake && mkdir build && cd build
cmake -Dprotobuf_BUILD_SHARED_LIBS=on ..
make
有没有办法用 cmake 构建 libprotoc.so.26? (如何在此处设置 SONAME?)
【问题讨论】:
标签: linux cmake build shared-libraries protocol-buffers