diff --git a/python/podio_gen/cpp_generator.py b/python/podio_gen/cpp_generator.py index e2415a08c..398546c9a 100644 --- a/python/podio_gen/cpp_generator.py +++ b/python/podio_gen/cpp_generator.py @@ -549,10 +549,11 @@ def _write_links_registration_file(self, links): "DatamodelLinks.cc", self._eval_template("DatamodelLinks.cc.jinja2", link_data), ) - self._write_file( - "DatamodelLinkSIOBlock.cc", - self._eval_template("DatamodelLinksSIOBlock.cc.jinja2", link_data), - ) + if "SIO" in self.io_handlers: + self._write_file( + "DatamodelLinkSIOBlock.cc", + self._eval_template("DatamodelLinksSIOBlock.cc.jinja2", link_data), + ) def _write_edm_def_file(self): """Write the edm definition to a compile time string"""