summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Mancusi <arekfu@users.noreply.github.com>2021-05-26 02:50:21 +0200
committerGitHub <noreply@github.com>2021-05-25 19:50:21 -0500
commitde27e6cbdd6728ace7119c7d1157b251f2caeeca (patch)
treee91658055cff7b6224e286a003535fc1334fc101
parent1b6b5e16113f3ea0fdfd656ad3d3b384e2217f5a (diff)
downloadspack-de27e6cbdd6728ace7119c7d1157b251f2caeeca.tar.gz
spack-de27e6cbdd6728ace7119c7d1157b251f2caeeca.tar.bz2
spack-de27e6cbdd6728ace7119c7d1157b251f2caeeca.tar.xz
spack-de27e6cbdd6728ace7119c7d1157b251f2caeeca.zip
root: add CLING_CXX_PATH variable to CMake build (#23888)
Closes issue #23886.
-rw-r--r--var/spack/repos/builtin/packages/root/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py
index c23f66432e..9b8f4c1123 100644
--- a/var/spack/repos/builtin/packages/root/package.py
+++ b/var/spack/repos/builtin/packages/root/package.py
@@ -350,7 +350,10 @@ class Root(CMakePackage):
define('shared', True),
define('soversion', True),
define('testing', self.run_tests),
- define_from_variant('thread', 'threads')
+ define_from_variant('thread', 'threads'),
+ # The following option makes sure that Cling will call the compiler
+ # it was compiled with at run time; see #17488, #18078 and #23886
+ define('CLING_CXX_PATH', self.compiler.cxx),
]
# Options related to ROOT's ability to download and build its own