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

Add CMake alias targets #3335

Closed

Conversation

NewProggie
Copy link

Currently, projects may use target_link_libraries(... GTest::gtest) etc. when consuming googletest via find_package() and target_link_libraries(... gtest) when consuming it via add_subdirectory().
This PR enables consuming projects to always refer to be using GTest::gtest etc. regardless of how this project was integrated.

@google-cla google-cla bot added the cla: yes label Mar 27, 2021
@derekmauro
Copy link
Member

#3155 is nearly identical and was just imported. It should be re-exported to GitHub this week.

@derekmauro derekmauro closed this Mar 29, 2021
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.

2 participants