diff --git a/recipes/grpc/all/conanfile.py b/recipes/grpc/all/conanfile.py index b9a2e46e7029a..0dc9dad8aa3db 100644 --- a/recipes/grpc/all/conanfile.py +++ b/recipes/grpc/all/conanfile.py @@ -299,7 +299,7 @@ def _module_path(self): def _grpc_components(self): def libsystemd(): - return ["libsystemd::libsystemd"] if self._supports_libsystemd else [] + return ["libsystemd::libsystemd"] if self._supports_libsystemd and self.options.with_libsystemd else [] def libm(): return ["m"] if self.settings.os in ["Linux", "FreeBSD"] else []