You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Motivation
The current CMakeLists.txt does not work with the latest Protobuf
(23.3.0). It's because currently the Module mode is used to find
Protobuf, while the `FindProtobuf.cmake` is not updated to find the
Abseil dependency.
See protocolbuffers/protobuf#12292 (comment)
### Modifications
For macOS, use the Config mode to find Protobuf. It's because in other
systems, the Module mode works well. Besides, enable `PROTOBUF_USE_DLLS`
as a workaround for
protocolbuffers/protobuf#12983 is not released.
Pin the default C++ standard to 17 for macOS so that users don't need to
set the C++ standard manually.
You need to configure `CMAKE_CXX_STANDARD` with 14 because the latest `googletest` dependency from HomeBrew requires the C++14 support. If you don't want to build tests, you can run:
143
-
144
-
```bash
145
-
cmake . -DBUILD_TESTS=OFF
142
+
cmake .
146
143
make
147
144
```
148
145
149
146
If you want to build performance tools, you need to run:
0 commit comments