def METHOD_NAME(self):
    if self.settings.compiler.get_safe("cppstd"):
        check_min_cppstd(self, 11)
    if is_msvc(self) and self.options.shared:
        raise ConanInvalidConfiguration("CLHEP doesn't properly build its shared libs with Visual Studio")