def METHOD_NAME(self):
    spec = self.spec
    options = []
    options.extend(
        [
            self.define_from_variant("CGNS_ENABLE_FORTRAN", "fortran"),
            self.define_from_variant("CGNS_ENABLE_SCOPING", "scoping"),
            self.define_from_variant("CGNS_ENABLE_PARALLEL", "mpi"),
            "-DCGNS_ENABLE_TESTS:BOOL=OFF",
            self.define_from_variant("CGNS_BUILD_TESTING", "testing"),
            self.define_from_variant("CGNS_BUILD_CGNSTOOLS", "tools"),
            self.define_from_variant("CGNS_BUILD_SHARED", "shared"),
            self.define_from_variant("CGNS_BUILD_STATIC", "static"),
            self.define_from_variant("CGNS_ENABLE_BASE_SCOPE", "base_scope"),
            self.define_from_variant("CGNS_ENABLE_LEGACY", "legacy"),
            self.define_from_variant("CGNS_ENABLE_MEM_DEBUG", "mem_debug"),
        ]
    )
    if "+mpi" in spec:
        options.extend(
            [
                "-DCMAKE_C_COMPILER=%s" % spec["mpi"].mpicc,
                "-DCMAKE_CXX_COMPILER=%s" % spec["mpi"].mpicxx,
                "-DCMAKE_Fortran_COMPILER=%s" % spec["mpi"].mpifc,
            ]
        )
    options.append(self.define_from_variant("CGNS_ENABLE_64BIT", "int64"))
    if "+hdf5" in spec:
        options.extend(
            [
                "-DCGNS_ENABLE_HDF5:BOOL=ON",
                "-DHDF5_NEED_ZLIB:BOOL=ON",
                "-DHDF5_INCLUDE_DIR:PATH=%s" % spec["hdf5"].prefix.include,
                "-DHDF5_LIBRARY_DIR:PATH=%s" % spec["hdf5"].prefix.lib,
            ]
        )
        if "+mpi" in spec:
            options.extend(["-DHDF5_NEED_MPI:BOOL=ON", "-DHDF5_ENABLE_PARALLEL:BOOL=ON"])
    else:
        options.extend(["-DCGNS_ENABLE_HDF5=OFF"])
    if self.version <= Version("3.3.1"):
        if sys.platform == "darwin":
            options.extend(["-DCMAKE_MACOSX_RPATH:BOOL=ON"])
    return options