You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I saw that on https://github.com/google/benchmark?tab=readme-ov-file#usage-with-cmake the Readme indicates that I should link against both benchmark::benchmark and benchmark::benchmark_main when using CMake. What's the difference between the two? Wouldn't it be enough to just link against benchmark::benchmark_main?
Thanks.
The text was updated successfully, but these errors were encountered:
martingalvan-volue
changed the title
[FR]
CMake: Difference between benchmark::benchmark and benchmark::benchmark_main
Sep 18, 2024
The text above that CMake group is correct. Especially with CMake, linking to either one is sufficient, benchmark::benchmark_main will pull in the benchmark::benchmark.
Hi, I saw that on https://github.com/google/benchmark?tab=readme-ov-file#usage-with-cmake the Readme indicates that I should link against both
benchmark::benchmark
andbenchmark::benchmark_main
when using CMake. What's the difference between the two? Wouldn't it be enough to just link againstbenchmark::benchmark_main
?Thanks.
The text was updated successfully, but these errors were encountered: