-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add LEGACY_PROJECT_PREFIX option #199
Conversation
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 <scpeters@openrobotics.org>
Requires gazebosim/gz-cmake#199 Signed-off-by: Steve Peters <scpeters@openrobotics.org>
There was a problem hiding this 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
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
actions CI failing due to docker hub issue: |
docker is working again; CI is clean, so I will merge |
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 |
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 <scpeters@openrobotics.org>
🎉 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
andIGNITION-MATH_INCLUDE_DIRS
. In order to support a project with inconsistent case in the legacy cmake variables, likeSDFormat_LIBRARIES
, the prefix for these variables is made configurable asLEGACY_PROJECT_PREFIX
in theign_create_core_library
function.Test it
Compile against gazebosim/sdformat@e987976
Checklist
codecheck
passed (See contributing)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.