Skip to content

Conversation

@dbolduc
Copy link
Member

@dbolduc dbolduc commented Feb 2, 2024

Part of the work for #5782

For some reason CMake complains when we export google_cloud_cpp_bigtable_mocks because it cannot find the linked library: GTest::gmock_main. This problem does not come up with interface (header only) libraries.

We want to always install the mocks.... but we also do not want to Find(GTest) when NOT BUILD_TESTING.... so this is my solution to unblock installing the mocks library for bigtable.


This change is Reviewable

@product-auto-label product-auto-label bot added the api: bigtable Issues related to the Bigtable API. label Feb 2, 2024
@codecov
Copy link

codecov bot commented Feb 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3f8954c) 93.18% compared to head (84a9f09) 93.18%.
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13546   +/-   ##
=======================================
  Coverage   93.18%   93.18%           
=======================================
  Files        2195     2195           
  Lines      190874   190874           
=======================================
  Hits       177867   177867           
  Misses      13007    13007           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dbolduc dbolduc marked this pull request as ready for review February 2, 2024 17:12
@dbolduc dbolduc requested a review from a team as a code owner February 2, 2024 17:12
Copy link
Member

@scotthart scotthart left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dbolduc)

@dbolduc dbolduc merged commit 2ba2d5f into googleapis:main Feb 2, 2024
@dbolduc dbolduc deleted the refactor-bigtable-mocks-header-only branch February 2, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the Bigtable API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants