-
Notifications
You must be signed in to change notification settings - Fork 77
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
check target before linking #3
base: kinetic-devel
Are you sure you want to change the base?
Conversation
May I ask what error are you having? Do you have google-mock installed? |
Of course
I Installed google-mock by source. Which Version do you need ?
-> I think in my case gmock isn't found, but this shouldn't give a linker error. |
It should be installed via rosdep since it's listed on the package.xml as a dependency. It shuold install a deb package called google-mock on ubuntu. |
It is installed
|
You are on melodic I assume. I just used a melodic docker from osrf and succesfully built the package and the tests. I used
|
That is correct The problem in my case is, that we build gtest by source and set the GTEST_ROOT= /opt/gtest. |
I believe then it's better to make a PR for https://github.com/ros/catkin/blob/kinetic-devel/cmake/test/gtest.cmake You can already disable the tests using CATKIN_ENABLE_TESTING. |
In my opinion is to check if the target exist always a good proceed But you are correct I also have to add a pullrequest for gtest.cmake that this will find a custom gmock installation |
gmock isn't working with catkin
check if target is build that the linking doesn't fail