[interpreter] wrong CLANG_CMAKE_DIR when builtin_llvm=OFF but builtin_clang=ON
envgap__root-project__root-23378
01 / FAILURE SIGNATURE
As reported upstream
Could not find a package configuration file provided by "Clang" with any of
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
cdac40930f5f97e7887b46d9459f7539807ad817- Manifest
interpreter/CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
root-project/root #23378 · read the original issue
### Check duplicate issues.
- [ ] Checked for duplicates
### Description
See https://github.com/root-project/root/actions/runs/34990695261/job/104454626509
After turning clad OFF, the full ROOT build works perfectly fine. See https://github.com/root-project/root/pull/23372/
```
CMake Error at CMakeLists.txt:135 (find_package):
Could not find a package configuration file provided by "Clang" with any of
the following names:
Clang.cps
clang.cps
ClangConfig.cmake
clang-config.cmake
Add the installation prefix of "Clang" to CMAKE_PREFIX_PATH or set
"Clang_DIR" to a directory containing one of the above files. If "Clang"
provides a separate development package or SDK, be sure it has been
installed.
CMake Error at /github/home/ROOT-CI/src/build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-configure-Release.cmake:47 (message):
Stopping after outputting logs.
```
### Reproducer
```
docker run -it registry.cern.ch/root-ci/debiantesting:buildready
git clone https://github.com/root-project/root root_src && cd root_src
git cherry-pick 238b25032c0dc4672d589034d0f2071a58cb914f
mkdir build && cd build
cmake -Dbuiltin_llvm=OFF ..
make -j
```
### ROOT version
```
ROOT v6.36.02
Built for linuxx8664gcc on Jul 08 2025, 22:08:50
From tags/v6-36-02@v6-36-02
With c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Binary directory: /opt/root/bin
```
### Installation method
CI docker image
### Operating system
Debian testing
### Additional context
_No response_04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]