def METHOD_NAME(self):
    toolchain = CMakeToolchain(self)
    if is_msvc(self):
        toolchain.variables["USE_MSVC_RUNTIME_LIBRARY_DLL"] = not is_msvc_static_runtime(self)
    toolchain.METHOD_NAME()