def cmake_args(self):
    spec = self.spec
    args = [self.define('CMAKE_POSITION_INDEPENDENT_CODE', True), self.define('VTK_MAJOR_VERSION', spec['vtk'].version[0]), self.define('VTK_MINOR_VERSION', spec['vtk'].version[1]), self.define('VISIT_VTK_DIR', spec['vtk'].prefix), self.define('VISIT_ZLIB_DIR', spec['zlib'].prefix), self.define('VISIT_USE_GLEW', False), self.define('VISIT_CONFIG_SITE', 'NONE'), self.define('VISIT_INSTALL_THIRD_PARTY', True)]
    if ('@3.1: platform=darwin' in spec):
        args.append(self.define('FIXUP_OSX', False))
    if ('+python' in spec):
        args.extend([self.define('VISIT_PYTHON_FILTERS', True), self.define('VISIT_PYTHON_SCRIPTING', True), self.define('PYTHON_DIR', spec['python'].home)])
    else:
        args.extend([self.define('VISIT_PYTHON_FILTERS', False), self.define('VISIT_PYTHON_SCRIPTING', False)])
    if ('+gui' in spec):
        qt_bin = spec['qt'].prefix.bin
        qmake_exe = os.path.join(qt_bin, 'qmake')
        args.extend([self.define('VISIT_SERVER_COMPONENTS_ONLY', False), self.define('VISIT_ENGINE_ONLY', False), self.define('VISIT_LOC_QMAKE_EXE', qmake_exe), self.define('VISIT_QT_DIR', spec['qt'].prefix), self.define('VISIT_QWT_DIR', spec['qwt'].prefix)])
    else:
        args.extend([self.define('VISIT_SERVER_COMPONENTS_ONLY', True), self.define('VISIT_ENGINE_ONLY', True)])
    if ('^mesa' in spec):
        args.append(self.define('VISIT_MESAGL_DIR', spec['mesa'].prefix))
        if ('+llvm' in spec['mesa']):
            args.append(self.define('VISIT_LLVM_DIR', spec['libllvm'].prefix))
    if ('+hdf5' in spec):
        args.append(self.define('VISIT_HDF5_DIR', spec['hdf5'].prefix))
        if (('+mpi' in spec) and ('+mpi' in spec['hdf5'])):
            args.append(self.define('VISIT_HDF5_MPI_DIR', spec['hdf5'].prefix))
    if ('+silo' in spec):
        args.append(self.define('VISIT_SILO_DIR', spec['silo'].prefix))
    if ('+mpi' in spec):
        args.extend([self.define('VISIT_PARALLEL', True), self.define('VISIT_MPI_COMPILER', spec['mpi'].mpicxx)])
    else:
        args.append(self.define('VISIT_PARALLEL', False))
    return args
def cmake_args(self):
    spec = self.spec
    args = [self.define('CMAKE_POSITION_INDEPENDENT_CODE', True), self.define('VTK_MAJOR_VERSION', spec['vtk'].version[0]), self.define('VTK_MINOR_VERSION', spec['vtk'].version[1]), self.define('VISIT_VTK_DIR', spec['vtk'].prefix), self.define('VISIT_ZLIB_DIR', spec['zlib'].prefix), self.define('VISIT_USE_GLEW', False), self.define('VISIT_CONFIG_SITE', 'NONE'), self.define('VISIT_INSTALL_THIRD_PARTY', True)]
    if ('@3.1: platform=darwin' in spec):
        args.append(self.define('FIXUP_OSX', False))
    if ('+python' in spec):
        args.extend([self.define('VISIT_PYTHON_FILTERS', True), self.define('VISIT_PYTHON_SCRIPTING', True), self.define('PYTHON_DIR', spec['python'].home)])
    else:
        args.extend([self.define('VISIT_PYTHON_FILTERS', False), self.define('VISIT_PYTHON_SCRIPTING', False)])
    if ('+gui' in spec):
        qt_bin = spec['qt'].prefix.bin
        qmake_exe = os.path.join(qt_bin, 'qmake')
        args.extend([self.define('VISIT_SERVER_COMPONENTS_ONLY', False), self.define('VISIT_ENGINE_ONLY', False), self.define('VISIT_LOC_QMAKE_EXE', qmake_exe), self.define('VISIT_QT_DIR', spec['qt'].prefix), self.define('VISIT_QWT_DIR', spec['qwt'].prefix)])
    else:
        args.extend([self.define('VISIT_SERVER_COMPONENTS_ONLY', True), self.define('VISIT_ENGINE_ONLY', True)])
    if ('^mesa' in spec):
        args.append(self.define('VISIT_MESAGL_DIR', spec['mesa'].prefix))
        if ('+llvm' in spec['mesa']):
            args.append(self.define('VISIT_LLVM_DIR', spec['libllvm'].prefix))
    if ('+hdf5' in spec):
        args.append(self.define('VISIT_HDF5_DIR', spec['hdf5'].prefix))
        if (('+mpi' in spec) and ('+mpi' in spec['hdf5'])):
            args.append(self.define('VISIT_HDF5_MPI_DIR', spec['hdf5'].prefix))
    if ('+silo' in spec):
        args.append(self.define('VISIT_SILO_DIR', spec['silo'].prefix))
    if ('+mpi' in spec):
        args.extend([self.define('VISIT_PARALLEL', True), self.define('VISIT_MPI_COMPILER', spec['mpi'].mpicxx)])
    else:
        args.append(self.define('VISIT_PARALLEL', False))
    return args