0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-28 14:42:31 +00:00

Correctly mark protobuf as required in find_package. ()

At the point at which we call find_package() to locate protobuf, we know
that we do, in fact, need it for this build. Given this, we should be
marking it as required in the find_package() call so that if it’s not
found the configuration phase fails instead of things breaking in
potentially strange ways later on during the build itself.
This commit is contained in:
Austin S. Hemmelgarn 2024-02-22 07:08:44 -05:00 committed by GitHub
parent 819025e9a7
commit a0d1e7ac69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -555,7 +555,7 @@ if(ENABLE_ACLK OR ENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE)
set(Protobuf_USE_STATIC_LIBS On)
endif()
find_package(Protobuf)
find_package(Protobuf REQUIRED)
endif()
set(ENABLE_PROTOBUF True)