def METHOD_NAME(self):
    opt_name = "{}_application".format(self.options.application)
    if not getattr(self.options["magnum"], opt_name):
        raise ConanInvalidConfiguration("Magnum needs option '{opt}=True'".format(opt=opt_name))
    if self.settings.os == "Emscripten" and self.options["magnum"].target_gl == "gles2":
        raise ConanInvalidConfiguration("OpenGL ES 3 required, use option 'magnum:target_gl=gles3'")