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

[QUESTION] Consider reintroducing googletest to cmake dependencies? #561

Closed
Tracked by #575
PragmaTwice opened this issue May 9, 2022 · 5 comments
Closed
Tracked by #575

Comments

@PragmaTwice
Copy link
Member

The current cmake/gtest.cmake is confusing, especially since it contains a directory on line 38 that does not exist, so this file does not seem to provide any functionality.

The project uses the system-supplied gtest, which makes it difficult to control its version. It also seems that the project does not use mechanisms such as find_package for gtest, but relies directly on the system header directory (e.g. /usr/include to find gtest/gest.h) and the -lgtest link option.

I think it would be better to reintroduce googletest with fixed tag/commit hash at the cmake level (source level) using ExternalProject or FetchContent. Since gtest doesn't have many translation units, it doesn't take long to compile.

I'm happy to provide PRs if that sounds like a good idea.

@tisonkun

@git-hulk
Copy link
Member

git-hulk commented May 9, 2022

+1, other guys also suffered this problem, I think we can reintroduce gtest to make the build process easier.

@ColinChamber
Copy link
Contributor

By the way could you help to finish this PR #525 ? I'm sorry I don't have the time currently. Thanks @PragmaTwice

@git-hulk
Copy link
Member

git-hulk commented May 9, 2022

@ColinChamber we can delay this PR since glog0.5 remove the autoconf which would
break the makefile.

@ColinChamber
Copy link
Contributor

OK

@PragmaTwice
Copy link
Member Author

Solved in #564

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

No branches or pull requests

3 participants