def METHOD_NAME(self):
    args = []
    if "+mpi" in self.spec:
        args.append("-Dwith-mpi=ON")
    else:
        args.append("-Dwith-mpi=OFF")
    if "+python" in self.spec:
        args.append("-Dwith-python=ON")
        args.append("-Dcythonize-pynest=" + self.spec["py-cython"].prefix)
    else:
        args.append("-Dwith-python=OFF")
        args.append("-Dcythonize-pynest=OFF")
    if "+optimize" in self.spec:
        args.append("-Dwith-optimize=ON")
    else:
        args.append("-Dwith-optimize=OFF")
    if "+gsl" in self.spec:
        args.append("-Dwith-gsl=" + self.spec["gsl"].prefix)
    else:
        args.append("-Dwith-gsl=OFF")
    if "+openmp" in self.spec:
        args.append("-Dwith-openmp=ON")
    else:
        args.append("-Dwith-openmp=OFF")
    if "+shared" in self.spec:
        args.append("-Dstatic-libraries=OFF")
    else:
        args.append("-Dstatic-libraries=ON")
    return args