pkg-config should be a build dependency only
This commit is contained in:
parent
5cac0a528c
commit
f5aed63b0b
@ -43,7 +43,7 @@ class Guile(Package):
|
||||
depends_on('bdw-gc@7.0:')
|
||||
depends_on('libffi')
|
||||
depends_on('readline', when='+readline')
|
||||
depends_on('pkg-config')
|
||||
depends_on('pkg-config', type='build')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
config_args = [
|
||||
|
@ -62,6 +62,10 @@ def install(self, spec, prefix):
|
||||
spec['meep'].prefix.lib
|
||||
]
|
||||
|
||||
if '+mpi' in spec:
|
||||
include_dirs.append(spec['mpi'].prefix.include)
|
||||
library_dirs.append(spec['mpi'].prefix.lib)
|
||||
|
||||
include_flags = '-I{0}'.format(','.join(include_dirs))
|
||||
library_flags = '-L{0}'.format(','.join(library_dirs))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user