root icon indicating copy to clipboard operation
root copied to clipboard

[cmake] [rntuple] fail to call cmake without internet connection

Open linev opened this issue 6 months ago • 0 comments

Check duplicate issues.

  • [ ] Checked for duplicates

Description

Calling cmake ~/git/root without internet produce failures at very end. Even when project was configured and compiled shortly before with internet on. Making impossible to work without connection.

All failures are from RNTuple testing which uses ROOT_STANDARD_LIBRARY_PACKAGE. I propose to use roottest macros like ROOTTEST_GENERATE_DICTIONARY - they does not create extra dependencies and executed after all components are build. Also ROOTTEST_GENERATE_DICTIONARY includes special handling for windows

Means one can move test sources to roottest directory and compile/run there

Reproducer

These are failures:

CMake Error at CMakeLists.txt:450 (add_dependencies):
  The dependency target "CustomStruct" of target "onepcm" does not exist.


CMake Error at CMakeLists.txt:450 (add_dependencies):
  The dependency target "CustomStructUtil" of target "onepcm" does not exist.


CMake Error at CMakeLists.txt:450 (add_dependencies):
  The dependency target "Event" of target "onepcm" does not exist.


CMake Error at CMakeLists.txt:450 (add_dependencies):
  The dependency target "NTupleStruct" of target "onepcm" does not exist.


CMake Error at CMakeLists.txt:450 (add_dependencies):
  The dependency target "SillyStruct" of target "onepcm" does not exist.


CMake Error at CMakeLists.txt:450 (add_dependencies):
  The dependency target "TrackMathCoreDict" of target "onepcm" does not
  exist.


CMake Error at CMakeLists.txt:450 (add_dependencies):
  The dependency target "TrackMathCoreUnitDict" of target "onepcm" does not
  exist.

ROOT version

master

Installation method

build from source

Operating system

OpenSUSE

Additional context

No response

linev avatar Jun 13 '25 11:06 linev