On Wed, 15 Sep 2021 18:17:33 -0500 Steven Robbins <st...@sumost.ca> wrote:
Intriguing. Note that gtest is intended as the base layer (gmock is built on top of gtest), so it would be a loss to have libgtest-dev pull in gmock. Hopefully there's an alternative fix.
I have submitted a rework of the CMake files to upstream quite a
while ago, and just tweaked them a little more to allow separating
GTest and GMock.

If the PR was accepted upstream, you could put GMockTargets.cmake
into libgmock-dev and it would be picked up only if libgmock-dev is
installed. This makes the CMake config robust, avoids the extra dependency,
and does not even need any downstream changes with GTest users.

Unfortunately, Google does not seem very eager to merge my PR.

--
⢀⣴⠾⠻⢶⣦⠀   ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling                                       │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀   ╰────────────────────────────────────────────────────╯

Attachment: signature.asc
Description: PGP signature

Reply via email to