Skip to content

Fix absolute source paths in ROOT dictionary autoload annotations#2

Open
olantwin wants to merge 1 commit into
luketpickering:mainfrom
ShipSoft:fix-dictionary-absolute-paths
Open

Fix absolute source paths in ROOT dictionary autoload annotations#2
olantwin wants to merge 1 commit into
luketpickering:mainfrom
ShipSoft:fix-dictionary-absolute-paths

Conversation

@olantwin

Copy link
Copy Markdown

Pass bare header names to ROOT_GENERATE_DICTIONARY instead of absolute paths via ${CMAKE_CURRENT_LIST_DIR}. Absolute paths get embedded in the dictionary's $clingAutoload$ annotations inside the shared library, causing errors at runtime when the source directory no longer exists (e.g. when deployed on CVMFS).

In the SHiP stack this works (built out of source), but of course this might need adjusting for other cases.

Pass bare header names to ROOT_GENERATE_DICTIONARY instead of absolute
paths via ${CMAKE_CURRENT_LIST_DIR}. Absolute paths get embedded in the
dictionary's $clingAutoload$ annotations inside the shared library,
causing errors at runtime when the source directory no longer exists
(e.g. when deployed on CVMFS).
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