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
Breaking change: Flip default behavior for handling cmake dependencies.
Instead of fetching dependencies by default, we will first look for a local installation and only fetch as a fallback. Two new options are added for forcing either of these behaviors. protobuf_FORCE_FETCH_DEPENDENCIES will always fetch dependencies, and protobuf_PREVENT_FETCH_DEPENDENCIES will never do so.
#test-continuous
PiperOrigin-RevId: 693898394
option(protobuf_DISABLE_RTTI "Remove runtime type information in the binaries"OFF)
36
36
option(protobuf_TEST_XML_OUTDIR "Output directory for XML logs from tests.""")
37
37
option(protobuf_ALLOW_CCACHE "Adjust build flags to allow for ccache support."OFF)
38
+
option(protobuf_FORCE_FETCH_DEPENDENCIES "Force all dependencies to be downloaded from GitHub. Local installations will be ignored."OFF)
39
+
option(protobuf_LOCAL_DEPENDENCIES_ONLY "Prevent downloading any dependencies from GitHub. If this option is set, the dependency must be available locally as an installed package."OFF)
set(protobuf_FETCH_DEPENDENCIES ONCACHEBOOL"Allow downloading dependencies from GitHub. If this option is not set, the dependency must be available locally as an installed package.")
264
-
265
-
set(protobuf_ABSL_PROVIDER "fetch"CACHESTRING"Provider of absl library. `fetch` downloads from GitHub and `package` searches for a local installation")
set(protobuf_JSONCPP_PROVIDER "fetch"CACHESTRING"Provider of jsoncpp library. `fetch` downloads from GitHub and `package` searches for a local installation")
0 commit comments