Skip to content

Check if GTest is available before downloading#9

Open
bkmgit wants to merge 1 commit into
FreeCAD:mainfrom
bkmgit:bkmgit-patch-1
Open

Check if GTest is available before downloading#9
bkmgit wants to merge 1 commit into
FreeCAD:mainfrom
bkmgit:bkmgit-patch-1

Conversation

@bkmgit
Copy link
Copy Markdown

@bkmgit bkmgit commented Sep 1, 2025

Enable use of GTest that is already available.

@bkmgit
Copy link
Copy Markdown
Author

bkmgit commented Sep 1, 2025

This is similar to #1 though gmock needs to be linked in a similar manner to gtest_main on newer CMake versions.

@aiksiongkoh
Copy link
Copy Markdown

Does your PR supersede
#1

@chennes
Copy link
Copy Markdown
Member

chennes commented Oct 9, 2025

I think we should be using the QUIET option to the find_package command there, right?

@bkmgit
Copy link
Copy Markdown
Author

bkmgit commented Nov 12, 2025

Added QUIET option as done in #1, can rebase changes on top of #1 if that would be better.

@chennes
Copy link
Copy Markdown
Member

chennes commented May 12, 2026

@bkmgit if this is still something you're interested in pursuing, can you rebase? FreeCAD itself is going to drop all the FetchContent calls and simply make gtest a system requirement if you want to build the tests, so we could also make that change here, instead.

@bkmgit
Copy link
Copy Markdown
Author

bkmgit commented May 12, 2026

@chennes Done.

@chennes
Copy link
Copy Markdown
Member

chennes commented May 13, 2026

@aiksiongkoh do you want to test this to make sure it works on your development environment before we merge it?

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.

3 participants