Bug #81066 do not build bundled protobuf if it is not needed
Submitted: 13 Apr 2016 10:58 Modified: 2 May 2016 19:03
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7.13 OS:Any
Assigned to: CPU Architecture:Any

[13 Apr 2016 10:58] Tor Didriksen
Description:
Currently Protobuf is used only by the X plugin.
Building of X plugin can be disabled with cmake -DWITH_RAPID=0
Still, we will build protobuf libraries and executables.

How to repeat:
cmake -DWITH_RAPID=0

Suggested fix:
Tag protobuf targets with
SET_PROPERTY(TARGET xxx PROPERTY EXCLUDE_FROM_ALL TRUE)
[2 May 2016 19:03] Paul DuBois
Posted by developer:
 
Noted in 5.7.14 changelog.

Protobuf is currently used only by the X plugin, but MySQL builds
built the protobuf libraries and executables even if X plugin
building was disabled with -WITH_RAPID=0.