# Problem at cmake configuration

**URL:** <https://root-forum.cern.ch/t/problem-at-cmake-configuration/62289>\
**Category:** ROOT\
**Tags:** cmake\
**Created:** [November 21, 2024, 1:13pm UTC](https://root-forum.cern.ch/t/problem-at-cmake-configuration/62289 "2024-11-21T13:13:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![olivier-subatech](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/olivier-subatech/32/28095_2.png) [@olivier-subatech](https://root-forum.cern.ch/u/olivier-subatech)\
**Post date:** [November 21, 2024, 1:13pm UTC](https://root-forum.cern.ch/t/problem-at-cmake-configuration/62289/1 "2024-11-21T13:13:34Z")

</div>

Hi there,  
since I upgraded root to 6.32 a warning is thrown at cmake configuration.

```auto
CMake Warning at /usr/share/root/cmake/ROOTConfig-targets.cmake:1582 (message):
  The imported target "ROOT::rootnb.exe" references the file

     "/usr/bin/rootnb.exe"

  but this file does not exist.

  If this target is used you need to install the package that provides this

  file using "dnf install".

  If this target is not used this warning can be ignored.
Call Stack (most recent call first):
  /usr/share/root/cmake/ROOTConfig.cmake:113 (include)
  CMakeLists.txt:68 (find_package)

```

This does not look like a big problem, but still, it’s a little bit annoying. My main concern is about people who will build the code, see the warning and call me to know if that’s really an issue 🙂

Thank you for your tie and consideration.

Regards,

Olivier

\_ROOT Version: 6.32.06  
\_Platform: linux x86\_64 fedora  
\_Compiler: g++

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [November 21, 2024, 3:47pm UTC](https://root-forum.cern.ch/t/problem-at-cmake-configuration/62289/2 "2024-11-21T15:47:54Z")

</div>

Hi,

Thanks for the post.  
How did you configure and what is your fedora version?  
Additionally: the latest stable is 6.32.08. Is there a reason why you did not pick that up?

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![olivier-subatech](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/olivier-subatech/32/28095_2.png) [@olivier-subatech](https://root-forum.cern.ch/u/olivier-subatech)\
**Post date:** [November 21, 2024, 3:51pm UTC](https://root-forum.cern.ch/t/problem-at-cmake-configuration/62289/3 "2024-11-21T15:51:53Z")

</div>

Fedora release 41 (Forty One)  
because root is installed from fedora package repositories… 🙂  
Olivier

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [November 21, 2024, 7:38pm UTC](https://root-forum.cern.ch/t/problem-at-cmake-configuration/62289/4 "2024-11-21T19:38:24Z")

</div>

Hi Olivier,

Thanks for the info. I do not understand exactly then: why are you configuring ROOT with CMake if you installed ROOT via a Fedora package? Sorry if this is obvious…

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![olivier-subatech](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/olivier-subatech/32/28095_2.png) [@olivier-subatech](https://root-forum.cern.ch/u/olivier-subatech)\
**Post date:** [November 22, 2024, 8:56am UTC](https://root-forum.cern.ch/t/problem-at-cmake-configuration/62289/5 "2024-11-22T08:56:24Z")

</div>

Because I’m not talking about building root but building a soft with root as a dependency 🙂 Here is the line I use in my main cmakelists to include root in my project

```auto
# ------------------------------------------------------------------------------
# root cern
# ------------------------------------------------------------------------------
find_package(ROOT 6 CONFIG REQUIRED)

```

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [November 22, 2024, 1:14pm UTC](https://root-forum.cern.ch/t/problem-at-cmake-configuration/62289/6 "2024-11-22T13:14:27Z")

</div>

I’ll investigate and I’ll come back to you

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [November 22, 2024, 1:58pm UTC](https://root-forum.cern.ch/t/problem-at-cmake-configuration/62289/7 "2024-11-22T13:58:37Z")

</div>

I cannot reproduce the issue. I guess it’s only happening with a system installed ROOT. I’ll need to try on a dedicated VM to see how that can be fixed, and that will take a bit of time (I’m afraid not before the end of next week)

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 6, 2024, 1:59pm UTC](https://root-forum.cern.ch/t/problem-at-cmake-configuration/62289/8 "2024-12-06T13:59:25Z")

</div>

Closed on December 6, 2024, 1:59pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
