Skip to content
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 for / install GTest even if using catkin or ament #404

Closed
wants to merge 1 commit into from

Conversation

paulerikf
Copy link

I could very well be missing something here, but creating a PR just in case.

Builds with colcon were failing for me with gtest/gtest.h file not found

Previously gtest was checked for / installed in an elseif(BUILD_UNIT_TESTS) block, which would only trigger if neither ament or catkin were found.

All this PR does is change the elseif(BUILD_UNIT_TESTS) to an if(BUILD_UNIT_TESTS), which fixed my build issues.

@facontidavide Does this look ok? Or am I missing something else?

@facontidavide
Copy link
Collaborator

change merged, thanks!

@facontidavide
Copy link
Collaborator

reverted. It breaks compilation in ROS

@paulerikf
Copy link
Author

Ah, in ROS1? I'll try to find something that works for both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants