def METHOD_NAME(occt_module):
    # CamelCase to snake_case
    spack_variant = re.sub(r"(?<!^)(?=[A-Z])", "_", occt_module).lower()
    enabled = spec.satisfies("+" + spack_variant)
    return self.define(f"BUILD_MODULE_{occt_module}", enabled)