-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Added GMOCK_LIBRARY check #1769
Conversation
Can you explain under which circumstances you had a problem with this?
Your change is also not compatible with our continuous integration build on Ubuntu Focal, as can be seen here: https://travis-ci.org/github/cartographer-project/cartographer/builds/739915655 |
@MichaelGrupp, I got the issue during compiling the cartographer on Raspbian OS of my RaspberryPi4 in ROS environment using
I've just analyzed my system. I did |
Thanks for the info. As of today, we depend on the According to Debian Buster,
On Stretch,
This is a bit confusing, especially since we want to support both right now. Poking @wohe who was involved in a similar discussion around |
Note: in our CI scripts for the non-ROS part, we have this: cartographer/scripts/install_debs_cmake.sh Lines 42 to 44 in de76ed9
TODO: If it is mandatory to install libgmock-dev, but only on Buster/Focal, we should note this down in the user docs if it's not there yet. |
Thanks for the info too @MichaelGrupp. No wonder this issue is so confusing.
That was exactly the issue on my RaspPi4. If CMake cannot find the variable |
Update: this looks like an issue in how rosdep resolves the key |
@MichaelGrupp
I just checked again, and the issue is only for GMOCK_LIBRARY. |
since ros/rosdistro#27195 was merged, can we close this PR? |
yes please |
Added CMake check to avoid build error if GMOCK_LIBRARY not found.