def METHOD_NAME(self):
    if self.settings.compiler.get_safe("cppstd"):
        check_min_cppstd(self, 11)
    if self.options.shared and is_msvc(self) and is_msvc_static_runtime(self):
        # This combination leads to an fast-cdr error when linking
        # linking dynamic '*.dll' and static MT runtime
        # see https://github.com/eProsima/Fast-CDR/blob/v1.0.21/include/fastcdr/eProsima_auto_link.h#L37
        # (2021-05-31)
        raise ConanInvalidConfiguration("Mixing a dll eprosima library with a static runtime is a bad idea")