def METHOD_NAME(self):
    args = []
    args.append("-DUSE_EXTERNAL_COMPILER_FLAGS=ON")
    for i in ["c", "fortran", "python"]:
        if "+" + i in self.spec:
            args.append("-Denable-{0}-bindings=ON".format(i))
        else:
            args.append("-Denable-{0}-bindings=OFF".format(i))
    if "+python" in self.spec:
        # adding path to python
        python = self.spec["python"]
        args.append("-DPYTHON_LIBRARY={0}".format(python.libs[0]))
        args.append("-DPYTHON_INCLUDE_DIR={0}".format(python.headers.directories[0]))
        args.append("-DPython_ADDITIONAL_VERSIONS={0}".format(python.version.up_to(2)))
        # adding path to boost
        args.append("-DBOOST_ROOT={0}".format(self.spec["boost"].prefix))
    if "+static" in self.spec:
        args.append("-Denable-static=ON")
    return args