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

Allow using local GTest #337

Merged
merged 2 commits into from
Jun 16, 2024
Merged

Conversation

CyanoKobalamyne
Copy link
Collaborator

This searches for the system-provided version of GTest first, and only downloads it if it's not available.

Another possible improvement would be to not re-download GTest every time configure.sh is run.

@yoni206 yoni206 self-assigned this Nov 15, 2023
@yoni206 yoni206 self-requested a review November 15, 2023 19:16
Copy link
Collaborator

@yoni206 yoni206 left a comment

Choose a reason for hiding this comment

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

Looks good and will speed things up.
Two questions:

  1. Perhaps it should verify that the local GTest is of the correct version, and only then avoid from downloading it?
  2. What do you think about having an option for this PR? The default could be the new behavior, but it would be nice when running configure.sh to force a new download of gtest.

Both questions arise from painful previous experience with Gtest versions. And if that happens, or anything else goes wrong, it would be nice to just change an option in order to make sure that the right version is downloaded.

@CyanoKobalamyne
Copy link
Collaborator Author

CyanoKobalamyne commented Jun 14, 2024

@yoni206 as per your request, added version check and flag to force downloading. :)

Copy link
Collaborator

@yoni206 yoni206 left a comment

Choose a reason for hiding this comment

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

Thanks for this!

@yoni206 yoni206 merged commit b099b2d into stanford-centaur:main Jun 16, 2024
10 checks passed
@CyanoKobalamyne CyanoKobalamyne deleted the gtest-dep branch June 18, 2024 18:06
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.

None yet

2 participants