Skip to content

Fix in-tree builds by namespacing the emitFromONNX target - #312

Merged
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:fix-intree-sofie-build
Sep 5, 2026
Merged

Fix in-tree builds by namespacing the emitFromONNX target#312
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:fix-intree-sofie-build

Conversation

@guitargeek

Copy link
Copy Markdown
Contributor

When rootbench is built as part of ROOT itself, the emitFromONNX executable target clashed with the target of the same name defined by the SOFIE tests in tmva/sofie/test, aborting the CMake configuration:

CMake Error at rootbench/root/tmva/sofie/CMakeLists.txt:67 (add_executable):
add_executable cannot create target "emitFromONNX" because another
target with the same name already exists.

Rename the rootbench target to rootbench-emitFromONNX to keep the two builds out of each other's way. The tool is an internal build step, so nothing user-facing changes.

When rootbench is built as part of ROOT itself, the emitFromONNX
executable target clashed with the target of the same name defined by
the SOFIE tests in tmva/sofie/test, aborting the CMake configuration:

  CMake Error at rootbench/root/tmva/sofie/CMakeLists.txt:67 (add_executable):
    add_executable cannot create target "emitFromONNX" because another
    target with the same name already exists.

Rename the rootbench target to rootbench-emitFromONNX to keep the two
builds out of each other's way. The tool is an internal build step, so
nothing user-facing changes.
@guitargeek
guitargeek merged commit ccf0e38 into root-project:master Sep 5, 2026
1 check passed
@guitargeek
guitargeek deleted the fix-intree-sofie-build branch September 5, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant