'Computes the standard cmake arguments for a generic package'

@staticmethod
def _std_args(pkg):

    try:
        build_type = pkg.spec.variants['build_type'].value
    except KeyError:
        build_type = 'RelWithDebInfo'
    args = ['-DCMAKE_INSTALL_PREFIX:PATH={0}'.format(pkg.prefix), '-DCMAKE_BUILD_TYPE:STRING={0}'.format(build_type), '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON']
    if platform.mac_ver()[0]:
        args.append('-DCMAKE_FIND_FRAMEWORK:STRING=LAST')
    args.append('-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=FALSE')
    rpaths = ':'.join(spack.build_environment.get_rpaths(pkg))
    args.append('-DCMAKE_INSTALL_RPATH:STRING={0}'.format(rpaths))
    return args
