-
Notifications
You must be signed in to change notification settings - Fork 26
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
CMake unused variable warnings in ROS2 workspace #83
Comments
You might want to pass the CMake option |
Assuming my previous comment answered your question I am going to close this ticket for now. Please feel free to continue commenting. |
I'm still getting these warnings, but only in some of the projects that I build. Are there any steps I can take to assist in debugging this? |
Maybe you are missing the export ament_cmake in your package.xml. That works for me
|
@halejo-as Thank you for the suggestion, but it appears that isn't the case (at least, from my very fast scripted analysis of the |
Referencing some of the behavior described in #16
The behavior of automatically setting the CATKIN_INSTALL_INTO_PREFIX_ROOT variable in a ROS2-only workspace leaves you with a bunch of unused cmake variable warnings:
I silence these in each individual project with:
but was wondering if there was a way to avoid having to manually specify this in each ROS2 CMakeLists.txt to avoid the additional noise in our build logs? If not, maybe supporting compatibility with catkin_tools in a mixed workspace could be placed behind some flag/option?
The text was updated successfully, but these errors were encountered: