-
Notifications
You must be signed in to change notification settings - Fork 100
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
Build: use ign cmake #747
Build: use ign cmake #747
Conversation
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
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.
I've made a few comments
I'd recommend not deprecating the old headers in this pull request to reduce the noise in the diff. If we decide to do that, we can do it at a later time
|
||
sdf_install_includes("" ${headers} | ||
${CMAKE_CURRENT_BINARY_DIR}/sdf.hh) | ||
ign_install_all_headers(EXCLUDE_FILES sdf.hh sdf_config.h) |
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.
if you exclude these header files, they will not be installed. do they need to be excluded?
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.
fixed in cbdc0de
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
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.
CI is failing this should fix it
I think the CI is failing because it is using an "old" version of ignition-cmake, we need the recent prs which allow to remove the ignition prefix. It's trying to look for |
the Ubuntu CI is using a nightly build of ignition-cmake2; you need to follow @ahcorde's suggestions above to fix the configuration |
examples/simple.cc
Outdated
@@ -15,7 +15,7 @@ | |||
* | |||
*/ | |||
#include <iostream> | |||
#include <sdf/sdf.hh> | |||
#include <ignition/sdformat.hh> |
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.
I think this can be reverted
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.
done d1144d4
Co-authored-by: Alejandro Hernández Cordero <[email protected]> Signed-off-by: Teo Koon Peng <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]> Signed-off-by: Teo Koon Peng <[email protected]>
Signed-off-by: Teo Koon Peng <[email protected]>
4b07ccb
to
d1144d4
Compare
I committed the suggested changes but still getting the same errors. |
my apologies, I forgot that gazebo-tooling/gzdev#44 would be needed |
I'll make an ign-cmake2 prerelease when gazebosim/gz-cmake#195 is approved |
I've opened an draft pull request in #780 that targets |
Should we close this PR, since #780 was merged? |
🎉 New feature
closes #181
Summary
Migrates the build scripts to use macros from
ign-cmake
as much as possible, this is dependent on a number of PRsconfig.hh
still being referenced with ignition prefix in the master header)Caveats
include/ignition/sdf
. This shouldn't matter as long as the user is using cmake or pkgconfig to find sdformat.include/ignition/sdf/config.hh
instead ofinclude/sdf/sdf_config.h
.include/ignition/sdformat.hh
instead ofinclude/sdf/sdf.hh
.ign_create_docs
macro, I'm not sure if they are compatible enough to switch over.Test it
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge