From e3f97b37e64d4de70baf8e58fcd747b021d8f2f9 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 17 Mar 2020 08:36:56 +0100 Subject: Module files won't use CPATH by default, but language specific vars (#14749) fixes #11555 Every path in CPATH is equivalent to a -I path to the compiler, while every path in *_INCLUDE_PATH is equivalent to -isystem. The latter avoids the noise due to warnings coming from 3rd party libraries that a project depends on. Added INCLUDE env variable (Intel Fortran, .mod files) --- etc/spack/defaults/modules.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/spack/defaults/modules.yaml b/etc/spack/defaults/modules.yaml index 77c976510b..5ae1b50fda 100644 --- a/etc/spack/defaults/modules.yaml +++ b/etc/spack/defaults/modules.yaml @@ -30,7 +30,11 @@ modules: lib64: - LIBRARY_PATH include: - - CPATH + - C_INCLUDE_PATH + - CPLUS_INCLUDE_PATH + # The INCLUDE env variable specifies paths to look for + # .mod file for Intel Fortran compilers + - INCLUDE lib/pkgconfig: - PKG_CONFIG_PATH lib64/pkgconfig: -- cgit v1.2.3-60-g2f50