def cmake_args(self):
    spec = self.spec
    options = [('-DBUILD_SHARED_LIBS:BOOL=%s' % ('ON' if ('+shared' in spec) else 'OFF')), ('-DBUILD_STATIC_LIBS:BOOL=%s' % ('OFF' if ('+shared' in spec) else 'ON'))]
    blas = spec['blas'].libs
    lapack = spec['lapack'].libs
    options.extend(['-DLAPACK_FOUND=true', ('-DLAPACK_INCLUDE_DIRS=%s' % spec['lapack'].prefix.include), ('-DLAPACK_LIBRARIES=%s' % lapack.joined(';')), ('-DBLAS_LIBRARIES=%s' % blas.joined(';'))])
    c_flags = []
    if ('+pic' in spec):
        c_flags.append(self.compiler.cc_pic_flag)
        options.append(('-DCMAKE_Fortran_FLAGS=%s' % self.compiler.fc_pic_flag))
    if (spec.satisfies('%clang') or spec.satisfies('%apple-clang')):
        c_flags.append('-Wno-error=implicit-function-declaration')
    options.append(self.define('CMAKE_C_FLAGS', ' '.join(c_flags)))
    return options
def cmake_args(self):
    spec = self.spec
    options = [('-DBUILD_SHARED_LIBS:BOOL=%s' % ('ON' if ('+shared' in spec) else 'OFF')), ('-DBUILD_STATIC_LIBS:BOOL=%s' % ('OFF' if ('+shared' in spec) else 'ON'))]
    blas = spec['blas'].libs
    lapack = spec['lapack'].libs
    options.extend(['-DLAPACK_FOUND=true', ('-DLAPACK_INCLUDE_DIRS=%s' % spec['lapack'].prefix.include), ('-DLAPACK_LIBRARIES=%s' % lapack.joined(';')), ('-DBLAS_LIBRARIES=%s' % blas.joined(';'))])
    c_flags = []
    if ('+pic' in spec):
        c_flags.append(self.compiler.cc_pic_flag)
        options.append(('-DCMAKE_Fortran_FLAGS=%s' % self.compiler.fc_pic_flag))
    if (spec.satisfies('%clang') or spec.satisfies('%apple-clang')):
        c_flags.append('-Wno-error=implicit-function-declaration')
    options.append(self.define('CMAKE_C_FLAGS', ' '.join(c_flags)))
    return options