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

Add missing cmake exports from core library #1978

Merged
merged 2 commits into from
May 2, 2023

Conversation

scpeters
Copy link
Member

@scpeters scpeters commented May 1, 2023

🦟 Bug fix

Fixes #1971

Summary

Compilation fails to find some dependent header files when including gz/sim.hh and linking against the core cmake target.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Not all of the needed include paths are exported with
the gz-sim target, so including the gz/sim.hh header
doesn't work easily. This test fails to build and
illustrates the problem.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@scpeters scpeters requested a review from mjcarroll as a code owner May 1, 2023 18:34
@github-actions github-actions bot added the 🌱 garden Ignition Garden label May 1, 2023
@codecov
Copy link

codecov bot commented May 1, 2023

Codecov Report

Merging #1978 (ce86e34) into gz-sim7 (7221109) will increase coverage by 0.00%.
The diff coverage is n/a.

❗ Current head ce86e34 differs from pull request most recent head 96e2cc1. Consider uploading reports for the commit 96e2cc1 to get more accurate results

@@           Coverage Diff            @@
##           gz-sim7    #1978   +/-   ##
========================================
  Coverage    65.03%   65.03%           
========================================
  Files          352      352           
  Lines        28429    28429           
========================================
+ Hits         18489    18490    +1     
+ Misses        9940     9939    -1     

see 1 file with indirect coverage changes

@mjcarroll mjcarroll merged commit 5d359c6 into gz-sim7 May 2, 2023
@mjcarroll mjcarroll deleted the scpeters/include_sim_hh branch May 2, 2023 12:07
scpeters added a commit that referenced this pull request May 2, 2023
Not all of the needed include paths are exported with
the gz-sim target, so including the gz/sim.hh header
doesn't work easily. This test fails to build and
illustrates the problem.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
scpeters added a commit that referenced this pull request May 2, 2023
Not all of the needed include paths are exported with
the gz-sim target, so including the gz/sim.hh header
doesn't work easily. This test fails to build and
illustrates the problem.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Can't compile when including gz/sim.hh, not enough include paths exported
3 participants