def METHOD_NAME(module_file, version):
    content = textwrap.dedent("""\
        set(ignition-utils{major}_VERSION_MAJOR {major})
        set(ignition-utils{major}_VERSION_MINOR {minor})
        set(ignition-utils{major}_VERSION_PATCH {patch})
        set(ignition-utils{major}_VERSION_STRING "{major}.{minor}.{patch}")
    """.format(major=version.major, minor=version.minor, patch=version.patch))
    tools.save(module_file, content)