root: add CLING_CXX_PATH variable to CMake build (#23888)

Closes issue #23886.
This commit is contained in:
Davide Mancusi 2021-05-26 02:50:21 +02:00 committed by GitHub
parent 1b6b5e1611
commit de27e6cbdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,7 +350,10 @@ def cmake_args(self):
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