-
Notifications
You must be signed in to change notification settings - Fork 177
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
update CMakeLists.txt to search for local gtest first #96
Conversation
There was a big mess with this package depending on the system version of gtest a few years back. If you're interested in working on this, I suggest you read through #30 . If you have time to implement the proposal there or propose something else that addresses those concerns and fixes the windows build, I would be happy to review it. If upgrading to a newer version of gtest will fix this, then upgrading the version of gtest in this package would also be an acceptable solution. |
This makes sense, we expected the motivation to be something like this too, system version of gtest can never be expected. I took a look at your conclusion in #30, rewriting these in Python might fix the problem but that might be something to work on later. At this point, we are primarily trying to push forward the upstreaming process so that ROS could be built and run on Windows. |
2254a77
to
8c4a3a1
Compare
I looked further into this, the error message indicates redefinition of the class Question regarding that, however, is this a custom version of gtest 1.7.0? asking because it's different from gtest github: https://github.com/google/googletest/tree/release-1.7.0. I figured if all class definitions are done correct, this error wouldn't happen since it could be prevented by header guards. I found this method interesting, however it didn't work when I tested it out. |
proper handling of include directories is already existing in self_test\CMakeLists.txt, haha =) |
@trainman419, just a friendly ping =) any update on this change? |
Sorry for the delay. Thanks! |
gtest
1.7.0
on Windows causes the following error:since a lot of ROS projects use gtest for testing, and gtest is already in a stable
1.8.x
state, change to use global gtest and delete local gtest binaries