Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add EDM4hep include dir #6

Merged
merged 3 commits into from
Sep 4, 2022
Merged

Conversation

wdconinc
Copy link
Contributor

@wdconinc wdconinc commented Sep 4, 2022

This addresses an issue when EDM4hep is installed in a dedicated prefix and the include directory does not end up in the compilation include line by virtue of other includes (as is the case when everything is in /usr/local).

Briefly, what does this PR introduce?

New include directory in the top level CMakeLists.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

Yes, in that it makes the default compilation succeed on some systems where it previously didn't.

This addresses an issue when EDM4hep is installed in a dedicated prefix and the include directory does not end up in the compilation include line by virtue of other includes (as is the case when everything is in /usr/local).
@wdconinc wdconinc enabled auto-merge (squash) September 4, 2022 15:20
@wdconinc wdconinc requested a review from sly2j September 4, 2022 15:21
@wdconinc wdconinc requested a review from veprbl September 4, 2022 16:24
@wdconinc
Copy link
Contributor Author

wdconinc commented Sep 4, 2022

See also discussion at eic/eicd#6.

@wdconinc wdconinc merged commit 72149e5 into main Sep 4, 2022
@wdconinc wdconinc deleted the include-directories-edm4hep branch September 4, 2022 16:45
wdconinc added a commit that referenced this pull request Sep 20, 2022
### Briefly, what does this PR introduce?
This removes the `target_include_directories` introduced in #6 again,
since the `target_link_libraries` introduced in #5 set the include
directories the right way.

### What kind of change does this PR introduce?
- [ ] Bug fix (issue #__)
- [ ] New feature (issue #__)
- [ ] Documentation update
- [X] Other: technical debt reduction

### Please check if this PR fulfills the following:
- [ ] Tests for the changes have been added
- [ ] Documentation has been added / updated
- [ ] Changes have been communicated to collaborators

### Does this PR introduce breaking changes? What changes might users
need to make to their code?
No.

### Does this PR change default behavior?
No.
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.

2 participants