[libc++] Use CMake interface targets to setup benchmark flags
authorLouis Dionne <ldionne@apple.com>
Wed, 12 Aug 2020 21:56:16 +0000 (17:56 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Thu, 23 Sep 2021 16:14:01 +0000 (12:14 -0400)
commitfd04fd9ac92d705f7d144b77109b8bcec950c04f
tree390443f3d1a84404ce895fb2c809118eb9433eef
parentf9912fe4eac91f27965c22d015b3109c5158d050
[libc++] Use CMake interface targets to setup benchmark flags

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.

Differential Revision: https://reviews.llvm.org/D110285
libcxx/benchmarks/CMakeLists.txt