summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2020-03-17 08:36:56 +0100
committerGitHub <noreply@github.com>2020-03-17 08:36:56 +0100
commite3f97b37e64d4de70baf8e58fcd747b021d8f2f9 (patch)
tree208b6c3be6fb396307a78f87d913e1c21b2e237e
parentc92847a30c945612658a617bf70d33f794736390 (diff)
downloadspack-e3f97b37e64d4de70baf8e58fcd747b021d8f2f9.tar.gz
spack-e3f97b37e64d4de70baf8e58fcd747b021d8f2f9.tar.bz2
spack-e3f97b37e64d4de70baf8e58fcd747b021d8f2f9.tar.xz
spack-e3f97b37e64d4de70baf8e58fcd747b021d8f2f9.zip
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)
-rw-r--r--etc/spack/defaults/modules.yaml6
1 files changed, 5 insertions, 1 deletions
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: