Skip to content

Commit 4508fd2

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

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,26 @@ 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+
# BUILD_PROTOBUFS_PROTOC is only needed if some new feature has been
115+
# added to the protobuf language. The details are given in
116+
# packages/protobufs/README.md and
117+
# packages/protobufs/bootstrap/README.md.
118+
option(BUILD_PROTOBUFS_PROTOC
119+
"Build protobuf with latest protoc"
118120
OFF)
121+
# TEST_PROTOBUFS_PROTOC runs optional tests on packages/protobufs that
122+
# test the plugin for protoc. The test requires installing packages
123+
# protobuf-compiler python3-protobuf libprotobuf-devel (or
124+
# protobuf-devel):
125+
if(BUILD_PROTOBUFS_PROTOC)
126+
option(TEST_PROTOBUFS_PROTOC
127+
"Run protobuf tests that require protoc, etc."
128+
ON)
129+
else()
130+
option(TEST_PROTOBUFS_PROTOC
131+
"Run protobuf tests that require protoc, etc."
132+
OFF)
133+
endif()
119134
option(BUILD_SWIPL_LD
120135
"Create the swipl-ld utility"
121136
ON)

0 commit comments

Comments
 (0)