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 LEGACY_PROJECT_PREFIX option #199

Merged
merged 2 commits into from
Dec 20, 2021

Conversation

scpeters
Copy link
Member

@scpeters scpeters commented Dec 19, 2021

🎉 New feature

Needed by gazebosim/sdformat#780

Summary

The cmake config template file currently creates legacy cmake variables with capital letters like IGNITION-MATH_LIBRARIES and IGNITION-MATH_INCLUDE_DIRS. In order to support a project with inconsistent case in the legacy cmake variables, like SDFormat_LIBRARIES, the prefix for these variables is made configurable as LEGACY_PROJECT_PREFIX in the ign_create_core_library function.

Test it

Compile against gazebosim/sdformat@e987976

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • 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.

The cmake config template file currently creates legacy
cmake variables with capital letters like
IGNITION-MATH_LIBRARIES and IGNITION-MATH_INCLUDE_DIRS.
Since sdformat uses inconsistent case in the legacy cmake
variables, like SDFormat_LIBRARIES, the prefix for these
variables is made configurable as LEGACY_PROJECT_PREFIX
in the ign_create_core_library function.

Signed-off-by: Steve Peters <[email protected]>
@github-actions github-actions bot added Gazebo 1️1️ Dependency of Gazebo classic version 11 🌱 garden Ignition Garden 🏢 edifice Ignition Edifice 🏯 fortress Ignition Fortress 🏰 citadel Ignition Citadel 🔮 dome Ignition Dome labels Dec 19, 2021
scpeters added a commit to gazebosim/sdformat that referenced this pull request Dec 19, 2021
Copy link
Contributor

@adlarkin adlarkin left a comment

Choose a reason for hiding this comment

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

Changes look good, and I had no issues when testing with gazebosim/sdformat@e987976. I just left one very minor comment

cmake/IgnUtils.cmake Show resolved Hide resolved
@scpeters
Copy link
Member Author

actions CI failing due to docker hub issue:

@scpeters
Copy link
Member Author

actions CI failing due to docker hub issue:

docker is working again; CI is clean, so I will merge

@scpeters scpeters merged commit a1eb36a into gazebosim:ign-cmake2 Dec 20, 2021
@scpeters scpeters deleted the legacy_project_prefix branch December 20, 2021 23:40
@osrf-triage
Copy link

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-ignition-releases-2022-01-10/1228/1

srmainwaring pushed a commit to srmainwaring/gz-cmake that referenced this pull request Mar 1, 2022
The cmake config template file currently creates legacy
cmake variables with capital letters like
IGNITION-MATH_LIBRARIES and IGNITION-MATH_INCLUDE_DIRS.
Since sdformat uses inconsistent case in the legacy cmake
variables, like SDFormat_LIBRARIES, the prefix for these
variables is made configurable as LEGACY_PROJECT_PREFIX
in the ign_create_core_library function.

Signed-off-by: Steve Peters <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel 🔮 dome Ignition Dome 🏢 edifice Ignition Edifice 🏯 fortress Ignition Fortress 🌱 garden Ignition Garden Gazebo 1️1️ Dependency of Gazebo classic version 11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants