Skip to content

[cmake] Do not auto-turn OFF feature or auto-turn ON builtin_option - #23020

Open
ferdymercury wants to merge 1 commit into
root-project:masterfrom
ferdymercury:failondef2
Open

[cmake] Do not auto-turn OFF feature or auto-turn ON builtin_option#23020
ferdymercury wants to merge 1 commit into
root-project:masterfrom
ferdymercury:failondef2

Conversation

@ferdymercury

@ferdymercury ferdymercury commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

for easy-to-install dependencies (via homebrew, apt-get)

when dependency is missing in the system. Instead, force user to install it via package manager, or to turn feature purposely OFF by hand.

Spit-off from #23015 as suggested by @guitargeek

This goes totally in-line with what's already done for asimage, zlib, etc.

Comment thread cmake/modules/SearchInstalledSoftware.cmake Outdated
Comment thread cmake/modules/SearchInstalledSoftware.cmake Outdated
Comment thread README/ReleaseNotes/v642/index.md Outdated
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 14h 35m 35s ⏱️
 3 857 tests  3 857 ✅ 0 💤 0 ❌
79 465 runs  79 465 ✅ 0 💤 0 ❌

Results for commit 375b1cb.

♻️ This comment has been updated with latest results.

for easy-to-install dependencies (via homebrew, apt-get)

when dependency is missing in the system. Instead, force user to install it via package manager, or to turn feature purposely OFF.

[nfc] improve error messages

Co-authored-by: ferdymercury <ferdymercury@users.noreply.github.com>
@pcanal

pcanal commented Aug 7, 2026

Copy link
Copy Markdown
Member

most ROOT builtins already call ROOT_FIND_REQUIRED_DEP which purposely bypasses this flag,

After some usage, I find this change to be indeed more pedantic (useful for system maintainer) but also annoyingly-so for the 'quickly build ROOT on this system for my private usage' (I.e. now installing ROOT on a system that does not already have the required builtin has to go through a step of parsing (by hand or mechanically) the output of cmake to find the --builtin- are that needed ... I find this onerous for a private installation).

so I am not (yet?) convinced that completely removing the feature (auto-turn on) is desirable.

@ferdymercury

ferdymercury commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

I think AI could do that parsing and -Dbuiltin=On for you to paste on the terminal. One could also improve the printed error messages so that Root already proposes -Dbuiltin1=ON ... In a one liner rather than scattered as now

now installing ROOT on a system that does not already have the required builtin has to go through a step of parsing

Can't you install instead the dependencies via homebrew or apt? So that you don't need to parse anything, just copy paste packages.txt from rootci images?

I think more developer time is spent on maintaining those many code branches (and bugs) than the time spent in writing by hand built-in On.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants