Skip to content

Commit 642b90a

Browse files
committed
BUILD: add flag for building protoc plug-in
1 parent 20517c7 commit 642b90a

1 file changed

Lines changed: 25 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,32 @@ option(BUILD_TESTING
111111
option(SKIP_SSL_TESTS
112112
"Skip the SSL tests"
113113
OFF)
114-
# The following test requires installing protobuf-compiler python3-protobuf
115-
# libprotobuf-devel (or protobuf-devel)
116-
option(TEST_PROTOBUFS_PROTOC
117-
"Run protobuf tests that require protoc, etc."
114+
115+
# BUILD_PROTOBUFS_PROTOC is only needed if some new feature has been
116+
# added to the protobuf language. The details are given in
117+
# packages/protobufs/README.md and
118+
# packages/protobufs/bootstrap/README.md.
119+
120+
# NOTE: as of 2026-05-04, the BUILD_PROTOBUFS_PROTOC flags is not used;
121+
# it requires some changes to packages/protobufs.
122+
123+
option(BUILD_PROTOBUFS_PROTOC
124+
"Build protobuf with latest protoc"
118125
OFF)
126+
# TEST_PROTOBUFS_PROTOC runs optional tests on packages/protobufs that
127+
# test the plugin for protoc. The test requires installing packages
128+
# protobuf-compiler python3-protobuf libprotobuf-devel (or
129+
# protobuf-devel):
130+
if(BUILD_PROTOBUFS_PROTOC)
131+
option(TEST_PROTOBUFS_PROTOC
132+
"Run protobuf tests that require protoc, etc."
133+
ON)
134+
else()
135+
option(TEST_PROTOBUFS_PROTOC
136+
"Run protobuf tests that require protoc, etc."
137+
OFF)
138+
endif()
139+
119140
option(BUILD_SWIPL_LD
120141
"Create the swipl-ld utility"
121142
ON)

0 commit comments

Comments
 (0)