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 CMake warnings in Noble #2397

Merged
merged 2 commits into from
May 28, 2024
Merged

Conversation

Blast545
Copy link
Contributor

@Blast545 Blast545 commented May 7, 2024

🦟 Bug fix

Fixes CMake warnings in Noble

Summary

Removing the deprecated Dart (Testing tool) include and explicitly setting the timestamp option when fetch declaring googleTest in a specific example.

Reference build:
https://build.osrfoundation.org/job/gz_sim-ci-gz-sim8-noble-amd64/18/

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.

Signed-off-by: Jorge Perez <[email protected]>
@Blast545 Blast545 requested a review from mjcarroll as a code owner May 7, 2024 16:16
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label May 7, 2024
@Blast545 Blast545 self-assigned this May 7, 2024
@azeey
Copy link
Contributor

azeey commented May 7, 2024

#2387 is close to being merged and it has changes to examples/standalone/gtest_setup/CMakeLists.txt. Should we wait for that?

@Blast545
Copy link
Contributor Author

Blast545 commented May 7, 2024

@azeey I think if that one gets merged, this PR won't be needed, as the complete FetchContent logic is removed.

I didn't saw that one, if that's close to be merged I'll just put this one as a draft and close/continue if needed be.

@Blast545 Blast545 marked this pull request as draft May 7, 2024 19:58
@Blast545 Blast545 marked this pull request as ready for review May 27, 2024 21:46
@Blast545
Copy link
Contributor Author

@ros-pull-request-builder retest this please

@@ -10,14 +10,14 @@ set(GZ_SIM_VER ${gz-sim8_VERSION_MAJOR})
include(FetchContent)
FetchContent_Declare(
googletest
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this argument above URL because older versions of CMake handled it as part of the URL and failed.https://build.osrfoundation.org/job/gz_sim-ci-pr_any-jammy-amd64/625/testReport/junit/(root)/_init_/Plugins_ExamplesBuild/

@Blast545 Blast545 merged commit 8ca89f7 into gz-sim8 May 28, 2024
8 checks passed
@Blast545 Blast545 deleted the blast545/fix_sim8_noble_warnings branch May 28, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants