summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaryl W. Grunau <DarylGrunau@gmail.com>2021-11-11 03:30:44 -0700
committerGitHub <noreply@github.com>2021-11-11 05:30:44 -0500
commit770bbba676fe7e94f8c42ba5a5268571dd44e438 (patch)
tree4a180ac041e9b3a7bc8034ff91b4612ef6885842
parent8d021a29150d1b4d92b9d9ba7023a15928b39385 (diff)
downloadspack-770bbba676fe7e94f8c42ba5a5268571dd44e438.tar.gz
spack-770bbba676fe7e94f8c42ba5a5268571dd44e438.tar.bz2
spack-770bbba676fe7e94f8c42ba5a5268571dd44e438.tar.xz
spack-770bbba676fe7e94f8c42ba5a5268571dd44e438.zip
Trilinos: fix DEP_INCLUDE_DIRS definition (#27341)
-rw-r--r--var/spack/repos/builtin/packages/trilinos/package.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py
index 4e6ff07e3c..68276b65ca 100644
--- a/var/spack/repos/builtin/packages/trilinos/package.py
+++ b/var/spack/repos/builtin/packages/trilinos/package.py
@@ -562,7 +562,7 @@ class Trilinos(CMakePackage, CudaPackage):
depspec = spec[spack_name]
libs = depspec.libs
options.extend([
- define(trilinos_name + '_INCLUDE_DIRS', depspec.prefix.include),
+ define(trilinos_name + '_INCLUDE_DIRS', depspec.headers.directories),
define(trilinos_name + '_ROOT', depspec.prefix),
define(trilinos_name + '_LIBRARY_NAMES', libs.names),
define(trilinos_name + '_LIBRARY_DIRS', libs.directories),
@@ -630,10 +630,9 @@ class Trilinos(CMakePackage, CudaPackage):
spec['parmetis'].prefix.lib, spec['metis'].prefix.lib
]),
define('ParMETIS_LIBRARY_NAMES', ['parmetis', 'metis']),
- define('TPL_ParMETIS_INCLUDE_DIRS', [
- spec['parmetis'].prefix.include,
- spec['metis'].prefix.include
- ]),
+ define('TPL_ParMETIS_INCLUDE_DIRS',
+ spec['parmetis'].headers.directories +
+ spec['metis'].headers.directories),
])
if spec.satisfies('^superlu-dist@4.0:'):