-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add benchmark_main.pc
to link main()
containing library
#1779
Conversation
This is similar to the addition in google/googletest@8604c4a#diff-eb8e49bdf5e9aafb996777a4f4302ad1efd281222bf3202eb9b77ce47496c345 that added pkg-config support in GTest. Without this, users need to manually find the library containing `main()`.
Just out of abundance of caution, could you please show that a simple benchmark can be compiled and linked and run using that |
My main point of contention is, Line 82 in 17bc235
does it actually happen to transitively link to the benchmark , like the CMake-provided one does?
|
Yes it does, since it |
Code:
Running (just relying on
with
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG, thank you!
This is similar to the addition in google/googletest@8604c4a#diff-eb8e49bdf5e9aafb996777a4f4302ad1efd281222bf3202eb9b77ce47496c345 that added pkg-config support in GTest. Without this, users need to manually find the library containing
main()
.