This is a re-application of da0592e4c8df which was reverted in
1454018dc1d9 because it was incompatible with older CMakes.
Instead, disable the benchmarks when CMake is too old to
support those idioms.
Details
- Reviewers
ldionne - Group Reviewers
Restricted Project - Commits
- rGfd04fd9ac92d: [libc++] Use CMake interface targets to setup benchmark flags
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libcxx/benchmarks/CMakeLists.txt | ||
---|---|---|
100 | Nit: are we consistent whether to quote arguments or not? For example, below we say -lc++fs -lc++experimental, i.e. unquoted, but here we quote "-lstdc++fs". I'd like to be consistent at least within this neighborhood of code; I don't feel strongly on either way. |
Address review comments
libcxx/benchmarks/CMakeLists.txt | ||
---|---|---|
100 | Agreed, I'll unquote. Thanks for noticing. However, that makes me notice that I wasn't quoting the paths in other places, and we definitely want to do that in case they contain spaces. |
libcxx/benchmarks/CMakeLists.txt | ||
---|---|---|
100 | Makes sense. Yeah, we definitely want to quote paths. |
Nit: are we consistent whether to quote arguments or not? For example, below we say -lc++fs -lc++experimental, i.e. unquoted, but here we quote "-lstdc++fs". I'd like to be consistent at least within this neighborhood of code; I don't feel strongly on either way.