Skip to content
Snippets Groups Projects
Commit 023741e1 authored by Guilherme Amadio's avatar Guilherme Amadio
Browse files

Include new TTreePlayer headers as ROOT/*.hxx instead of *.hxx

New style headers that reside in ROOT/ should also be included as such.
This problem was not found before because headers are copied into
${CMAKE_BINARY_DIR}/include, and that directory is added first to the
include path, so since TTreeReaderValueFast.hxx and TBulkBranchRead.hxx
happen to be in the same directory (i.e. ${CMAKE_BINARY_DIR}/include),
it works. If ${CMAKE_BINARY_DIR}/include is added only later and as a
private include of each target, compilation fails with:

In file included from tree/treeplayer/src/TTreeReaderValueFast.cxx:12:
tree/treeplayer/inc/ROOT/TTreeReaderValueFast.hxx:27:10: fatal error:
TBulkBranchRead.hxx: No such file or directory

 #include "TBulkBranchRead.hxx"
          ^~~~~~~~~~~~~~~~~~~~~
parent e5f4d051
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment