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

fix GTest detection when cmake-extras is installed #1091

Conversation

dirk-thomas
Copy link
Member

Fixes #1084.

@dirk-thomas dirk-thomas self-assigned this May 13, 2020
@dirk-thomas dirk-thomas merged commit 860b699 into noetic-devel May 14, 2020
@dirk-thomas dirk-thomas deleted the dirk-thomas/fix-gtest-detection-when-cmake-extras-installed branch May 14, 2020 18:23
@dirk-thomas
Copy link
Member Author

Cherry-picked to kinetic-devel: 1daa680.

rhaschke added a commit to ubi-agni/catkin that referenced this pull request Jul 1, 2020
This fixes ros#1091, which introduced a shortcut defining GTEST_FOUND when all targets are defined.
However, those targets are defined by a previous source build of gtest and gmock as well.
Hence, if another catkin package is build below the same top-level project, the corresponding
GTEST_* variables were not defined anymore (because those values were not cached).

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

Successfully merging this pull request may close these issues.

cmake-extras package breaks google test in
1 participant