-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
Support system copy of gtest #654
Comments
It supports that already. If you have a parent project and already include Gtest then it will detect it. |
I don't think that helps when gtest is just installed on the system though and building minizip-ng by itself (i.e. no parent project). It least it doesn't for me, and other CMake packages pick it up fine. I don't think the target test will ever pass as we're not doing find_package (or anything else) for it. e.g.
|
Good idea. I am open to PRs. |
Distributions often do builds with no network access available for both security reasons and also to ensure reproducibility. This change tells CMake to query the system for a copy of gtest, but if it's not available, it'll fall back to downloading via FetchContent.
Distributions often do builds with no network access available for both security reasons and also to ensure reproducibility. This change tells CMake to query the system for a copy of gtest, but if it's not available, it'll fall back to downloading via FetchContent.
Thanks for the fix. |
No worries! |
Distributions often do builds with no network access available for both security reasons and also to ensure reproducibility. This change tells CMake to query the system for a copy of gtest, but if it's not available, it'll fall back to downloading via FetchContent.
Please consider reworking d03ca72 to allow using a system copy of gtest. Many package managers prohibit network access during the build.
While it may be possible to pre-download a copy and shove into the build dir, it's still a waste of resources and awkward to maintain.
Thanks!
The text was updated successfully, but these errors were encountered: