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

Use fetchcontent googletest #380

Merged
merged 3 commits into from
Mar 3, 2025
Merged

Conversation

nmm0
Copy link
Contributor

@nmm0 nmm0 commented Feb 14, 2025

FetchContent was introduced in cmake 3.11, we require 3.14 and above. FetchContent is pretty much a drop-in replacement for our previous code.

I also switched the target we use to the namespaced target: GTest::gtest_main. This is to avoid potential issues with accidentally adding -lgtest_main to the command line and finding a system gtest_main in some situations.

Copy link
Contributor

@mhoemmen mhoemmen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EXCELLENT

@nmm0 nmm0 merged commit 31a5c74 into kokkos:stable Mar 3, 2025
15 checks passed
@nmm0 nmm0 deleted the use-fetchcontent-googletest branch March 3, 2025 16:48
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